Bug #57287 | Slave_SQL_Errno is sometimes zero even when there is an error | ||
---|---|---|---|
Submitted: | 6 Oct 2010 14:42 | Modified: | 6 Oct 2010 15:07 |
Reporter: | Sven Sandberg | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.1+ | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[6 Oct 2010 14:42]
Sven Sandberg
[6 Oct 2010 15:07]
Valeriy Kravchuk
This is what we have: macbook-pro:mysql-test openxs$ ./mtr bug57287 Logging: ./mtr bug57287 101006 18:04:08 [Warning] Setting lower_case_table_names=2 because file system for /var/folders/dX/dXCzvuSlHX4Op1g-o1jIWk+++TI/-Tmp-/EQQxTs0BqB/ is case insensitive 101006 18:04:08 [Note] Plugin 'FEDERATED' is disabled. 101006 18:04:08 [Note] Plugin 'ndbcluster' is disabled. MySQL Version 5.1.52 Checking supported features... - using ndbcluster when necessary, mysqld supports it - SSL connections supported - binaries are debug compiled Collecting tests... vardir: /Users/openxs/dbs/5.1/mysql-test/var Checking leftover processes... Removing old var directory... Creating var directory '/Users/openxs/dbs/5.1/mysql-test/var'... Installing system database... Using server port 58610 ============================================================================== TEST RESULT TIME (ms) ------------------------------------------------------------ worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009 main.bug57287 [ fail ] Test ended at 2010-10-06 18:04:23 CURRENT_TEST: main.bug57287 --- /Users/openxs/dbs/5.1/mysql-test/r/bug57287.result 2010-10-06 18:04:01.000000000 +0300 +++ /Users/openxs/dbs/5.1/mysql-test/r/bug57287.reject 2010-10-06 18:04:23.000000000 +0300 @@ -0,0 +1,50 @@ +stop slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +reset master; +reset slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +start slave; +CREATE TABLE t1 (a INT PRIMARY KEY); +INSERT INTO t1 VALUES (1); +DELETE FROM t1; +INSERT INTO t1 VALUES (2), (1); +ERROR 23000: Duplicate entry '1' for key 'PRIMARY' +SHOW SLAVE STATUS; +Slave_IO_State Waiting for master to send event +Master_Host 127.0.0.1 +Master_User root +Master_Port 13000 +Connect_Retry 1 +Master_Log_File master-bin.000001 +Read_Master_Log_Pos 385 +Relay_Log_File slave-relay-bin.000003 +Relay_Log_Pos 438 +Relay_Master_Log_File master-bin.000001 +Slave_IO_Running Yes +Slave_SQL_Running No +Replicate_Do_DB +Replicate_Ignore_DB +Replicate_Do_Table +Replicate_Ignore_Table +Replicate_Wild_Do_Table +Replicate_Wild_Ignore_Table +Last_Errno 0 +Last_Error Query caused different errors on master and slave. Error on master: 'Duplicate entry '%-.192s' for key %d' (1062), Error on slave: 'no error' (0). Default database: 'test'. Query: 'INSERT INTO t1 VALUES (2), (1)' +Skip_Counter 0 +Exec_Master_Log_Pos 292 +Relay_Log_Space 686 +Until_Condition None +Until_Log_File +Until_Log_Pos 0 +Master_SSL_Allowed No +Master_SSL_CA_File +Master_SSL_CA_Path +Master_SSL_Cert +Master_SSL_Cipher +Master_SSL_Key +Seconds_Behind_Master NULL +Master_SSL_Verify_Server_Cert No +Last_IO_Errno 0 +Last_IO_Error +Last_SQL_Errno 0 +Last_SQL_Error Query caused different errors on master and slave. Error on master: 'Duplicate entry '%-.192s' for key %d' (1062), Error on slave: 'no error' (0). Default database: 'test'. Query: 'INSERT INTO t1 VALUES (2), (1)' ...