Merge lp:~vlad-lesin/percona-server/5.6-bugs-1268729-1268735 into lp:percona-server/5.6
Status: | Merged |
---|---|
Approved by: | Laurynas Biveinis |
Approved revision: | no longer in the source branch. |
Merged at revision: | 554 |
Proposed branch: | lp:~vlad-lesin/percona-server/5.6-bugs-1268729-1268735 |
Merge into: | lp:percona-server/5.6 |
Diff against target: |
180 lines (+126/-2) 4 files modified
mysql-test/suite/rpl/r/rpl_percona_gmvac_net_err.result (+33/-0) mysql-test/suite/rpl/t/rpl_percona_gmvac_net_err.test (+67/-0) sql-common/client.c (+6/-0) sql/rpl_slave.cc (+20/-2) |
To merge this branch: | bzr merge lp:~vlad-lesin/percona-server/5.6-bugs-1268729-1268735 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Laurynas Biveinis (community) | Approve | ||
Review via email: mp+204786@code.launchpad.net |
Description of the change
Bug #1268735 fixing is merged from 5.5.
The difference between 5.5 and this patches is the following:
if (is_network_
{
goto network_err;
}
- else if (!check_
+ else {
errmsg= "The slave I/O thread stops because SET @master_
"on master failed.";
err_code= ER_SLAVE_
goto err;
}
The initial code checked if the slave thread was killed in the case if there
was error in mysql_real_query(). To save this logic non-network error in
mysql_real_query() is treated as fatal error only if the slave thread was
not killed in 5.5. But as 5.6 upstream fix (see upstream revno: 2661.723.1)
does not contain this check it was decided do not include it in PS-5.6.
The fix for bug #1268729 merged from 5.5:
Slave I/O thread won't attempt to automatically reconnect to the master.
The fix is in including ER_NET_
network related error codes in is_network_error() function.
The test case tests a couple of cases when get_master_
fails due to ER_NET_
There are no big differences between 5.6 and 5.5 fixes.
http://
ST 38489