Bug #39245 | Slave does not stop when using stop slave command | ||
---|---|---|---|
Submitted: | 4 Sep 2008 14:29 | Modified: | 8 Oct 2008 12:27 |
Reporter: | Pavel Baranov | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.0.37-max-log, 5.0.67 | OS: | Linux (REDHAT E 5.0) |
Assigned to: | CPU Architecture: | Any | |
Tags: | replication, stop slave |
[4 Sep 2008 14:29]
Pavel Baranov
[4 Sep 2008 18:24]
Sveta Smirnova
Thank you for the report. But version 5.0.37 is quite old. Please upgrade to current version 5.0.67, try with it and inform us if the problem still exists.
[4 Sep 2008 20:34]
Pavel Baranov
upgraded to 5.0.67 WARNINGS were shown: 080904 16:26:12 [Warning] The syntax for replication startup options is deprecated and will be removed in MySQL 5.2. Please use 'CHANGE MASTER' instead. 080904 16:26:12 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=ndb05-relay-bin' to avoid this problem. 080904 16:26:12 [Warning] The syntax for replication startup options is deprecated and will be removed in MySQL 5.2. Please use 'CHANGE MASTER' instead. 080904 16:26:13 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=ndb05-relay-bin' to avoid this problem. the problem persists
[5 Sep 2008 7:20]
Sveta Smirnova
Thank you for the feedback. Please try to find what happens on your server: 1. If problem is repeatable every time on the particular slave please stop the server, add option log to my.cnf, start server, start slave, stop slave, examine if slave is restarted and send us general log content. 2. Additionally issue SHOW SLAVE STATUS before stopping slave, remember Exec_Master_Log_Pos, stop slave, check slave magically restarted and remember new Exec_Master_Log_Pos. Please send us content of the master binary log file between these 2 Exec_Master_Log_Pos 3. Also, please, send us full error log file.
[5 Sep 2008 12:29]
Pavel Baranov
by sating "option log" you mean error log ?
[5 Sep 2008 15:25]
Pavel Baranov
master binary log between those execs
Attachment: binlog.log (text/plain), 97.36 KiB.
[5 Sep 2008 15:26]
Pavel Baranov
and here is what I did: mysql> show slave status \G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 10.1.0.106 Master_User: replication Master_Port: 3306 Connect_Retry: 60 Master_Log_File: node6_bin_log.000032 Read_Master_Log_Pos: 1037658188 Relay_Log_File: ndb05-relay-bin.000125 Relay_Log_Pos: 50753 Relay_Master_Log_File: node6_bin_log.000032 Slave_IO_Running: Yes Slave_SQL_Running: Yes 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: Skip_Counter: 0 Exec_Master_Log_Pos: 1037455326 Relay_Log_Space: 253615 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: 32 1 row in set (0.00 sec) mysql> stop slave; Query OK, 0 rows affected (0.01 sec) mysql> show slave status \G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 10.1.0.106 Master_User: replication Master_Port: 3306 Connect_Retry: 60 Master_Log_File: node6_bin_log.000032 Read_Master_Log_Pos: 1037668056 Relay_Log_File: ndb05-relay-bin.000125 Relay_Log_Pos: 105331 Relay_Master_Log_File: node6_bin_log.000032 Slave_IO_Running: Yes Slave_SQL_Running: Yes 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: Skip_Counter: 0 Exec_Master_Log_Pos: 1037509904 Relay_Log_Space: 263771 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: 28 1 row in set (0.00 sec) LOG: 080905 11:11:40 [Note] Slave I/O thread killed while reading event 080905 11:11:40 [Note] Slave I/O thread exiting, read up to log 'node6_bin_log.000032', position 1037661777 080905 11:11:40 [Note] Slave SQL thread exiting, replication stopped in log 'node6_bin_log.000032' at position 259 080905 11:11:40 [Note] Slave SQL thread initialized, starting replication in log 'node6_bin_log.000032' at position 259, relay log './ndb05-relay-bin.000125' position: 59414 080905 11:11:40 [Note] Slave I/O thread: connected to master 'replication@10.1.0.106:3306', replication started in log 'node6_bin_log.000032' at position 1037661777
[5 Sep 2008 19:42]
Sveta Smirnova
Thank you for the feedback. > by sating "option log" you mean error log ? Not, I meant general query log.
[5 Sep 2008 23:33]
Pavel Baranov
for some reason everything went back to normal :-/
[8 Sep 2008 12:27]
Susanne Ebrecht
Does this mean, we can close this bug report?
[8 Oct 2008 23: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".