mtr rpl.rpl_row_inexist_tbl fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
Fix Released
|
Low
|
Seppo Jaakola | ||
5.5 |
Fix Released
|
Low
|
Seppo Jaakola |
Bug Description
MySQL test suite test rpl.rpl_
CURRENT_TEST: rpl.rpl_
mysqltest: In included file "./include/
included from ./include/
At line 57: Slave stopped with wrong error code
The result from queries just before the failure was:
< snip >
SHOW BINARY LOGS;
Log_name File_size
master-bin.000001 405
**** SHOW BINLOG EVENTS on server_1 ****
binlog_name = 'master-bin.000001'
SHOW BINLOG EVENTS IN 'master-
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 107 Server ver: 5.5.15-
master-bin.000001 107 Query 1 193 use `test`; CREATE TABLE t1 (a INT)
master-bin.000001 193 Query 1 261 BEGIN
master-bin.000001 261 Table_map 1 302 table_id: 41 (test.t1)
master-bin.000001 302 Write_rows 1 336 table_id: 41 flags: STMT_END_F
master-bin.000001 336 Query 1 405 COMMIT
**** SHOW RELAYLOG EVENTS on server_1 ****
relaylog_name = 'No such row'
SHOW RELAYLOG EVENTS IN 'No such row';
Log_name Pos Event_type Server_id End_log_pos Info
**** Slave stopped with wrong error code: 1053 (expected 1146) ****
Test is being run in native MySQL compatibility mode (no wsrep provider).
Underlying problem is that MySQL slave gets wron error code when trying to apply a RBR event for a table which does not exist. Error code in slave is: 1053 (server shutting down), anbd expected result was: 1146.
Slave status shows:
mysql> show slave status \G ******* ******* ****** 1. row ******* ******* ******* ******
Slave_ IO_State: Waiting for master to send event
Master_ Host: 127.0.0.1
Master_ User: root
Master_ Port: 3307
Connect_ Retry: 60
Master_ Log_File: mysql-bin.000001
Read_ Master_ Log_Pos: 1332
Relay_ Log_File: pitbull- relay-bin. 000004
Relay_ Log_Pos: 435
Relay_ Master_ Log_File: mysql-bin.000001
Slave_ IO_Running: Yes
Slave_ SQL_Running: No
Replicate_ Do_DB:
Replicate_ Ignore_ DB:
Replicate_ Do_Table:
Replicate_ Ignore_ Table: _Wild_Do_ Table: Wild_Ignore_ Table:
Last_ Errno: 1053
Last_ Error: Error executing row event: 'Table 'test.t' doesn't exist'
Skip_ Counter: 0
Exec_ Master_ Log_Pos: 1163
Relay_Log_ Space: 1272
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 SSL_Verify_ Server_ Cert: No
Last_ IO_Errno: 0
Last_ IO_Error:
Last_SQL_ Errno: 1053
Last_SQL_ Error: Error executing row event: 'Table 'test.t' doesn't exist' Ignore_ Server_ Ids:
Master_ Server_ Id: 1
*******
Replicate
Replicate_
Master_
Replicate_