Bug #68429 | Slave SQL: Could not execute Query event. Detailed error: ;, Error_code: 0 | ||
---|---|---|---|
Submitted: | 19 Feb 2013 12:58 | Modified: | 19 Feb 2014 11:16 |
Reporter: | Erik Hoekstra | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.6.10, 5.6.14 | OS: | Linux (RHEL 6) |
Assigned to: | CPU Architecture: | Any | |
Tags: | log_warnings, replication, slave, slave-skip-errors, warning |
[19 Feb 2013 12:58]
Erik Hoekstra
[19 Feb 2013 17:04]
Sveta Smirnova
Thank you for the report. Please provide binary log file from master which causes this errors.
[20 Mar 2013 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[11 Oct 2013 15:31]
MySQL Verification Team
Hello Erik, Thank you for the report. Verified as described. Thanks, Umesh
[3 Jan 2014 14:32]
Carlos Vazquez
This is happening to me in version 5.6.15 too.
[19 Feb 2014 11:16]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. Fixed in MySQL 5.6+. Documented in the 5.6.17 and 5.7.4 changelogs as follows: When running the slave with --slave-parallel-workers at 1 or greater, setting --slave-skip-errors=all caused the error log to be filled with with instances of the warning -Slave SQL: Could not execute Query event. Detailed error: ;, Error_code: 0-. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Closed.
[29 Mar 2014 8:16]
Laurynas Biveinis
5.6$ bzr log -r 5825 -n0 ------------------------------------------------------------ revno: 5825 committer: Sujatha Sivakumar <sujatha.sivakumar@oracle.com> branch nick: Bug17581990_mysql-5.6 timestamp: Wed 2014-02-19 10:15:51 +0530 message: Bug#17581990:SLAVE SQL: COULD NOT EXECUTE QUERY EVENT. DETAILED ERROR: ;, ERROR_CODE: 0 Problem: ======== Setting slave-skip-errors=all on the slave will make mysql slave error log to grow continuously with the following warnings. [Warning] Slave SQL: Could not execute Query event. Detailed error: ;, Error_code: 0 Analysis: ======== This warning is generated during execution of Query event from the following peace of code. else if ((expected_error == actual_error && !concurrency_error_code(expected_error)) || ignored_error_code(actual_error)) { DBUG_PRINT("info",("error ignored")); if (log_warnings > 1 && ignored_error_code(actual_error)) rli->report(WARNING_LEVEL, actual_error,... The warning mainly depends on two parameters named "expected_error" and "actual_error". These two variables are initialised to zero by default. During the execution when there is no change in their values their values will remain as zeroes. Condition1: becomes true Condition2: It considers 0 as non concurrency related error code causing condition 2 to become true. condition3: 0 is considered as ignored error code. Hence the whole condition becomes true and warning gets generated. Fix: === Having "actual == expected == 0" must not be considered as a valid error condition. Hence if non zero value exists for this variable only then it should be checked for ignored error.