| Bug #68657 | "mysqlrpladmin start" fails to start slave SQL thread | ||
|---|---|---|---|
| Submitted: | 12 Mar 2013 22:43 | Modified: | 11 Jul 2013 3:27 |
| Reporter: | Thorn Roby | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Utilities | Severity: | S2 (Serious) |
| Version: | 1.2.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | mysqlrpladmin, replication | ||
[12 Mar 2013 22:43]
Thorn Roby
[28 Mar 2013 15:20]
Paulo Jesus
The issue was identified and it is related to a server bug.
[10 Apr 2013 15:29]
Valeriy Kravchuk
Can we get a link to (or number of, at least) server bug that leads to this?
[30 Apr 2013 17:05]
MySQL Verification Team
Hello Thornton, Thank you for the report. Verified as described. Thanks, Umesh
[30 Apr 2013 17:07]
MySQL Verification Team
##
D:\ushastry\MySQL Workbench 5.2.47 CE\utilities>mysqlrpladmin --master=root@localhost:3333 --slaves=root@localhost:3399 health
# Checking privileges.
#
# Replication Topology Health:
+------------+-------+---------+--------+------------+---------+
| host | port | role | state | gtid_mode | health |
+------------+-------+---------+--------+------------+---------+
| localhost | 3333 | MASTER | UP | OFF | OK |
| localhost | 3399 | SLAVE | UP | OFF | OK |
+------------+-------+---------+--------+------------+---------+
# ...done.
D:\ushastry\MySQL Workbench 5.2.47 CE\utilities>mysqlrpladmin --master=root@localhost:3333 --slaves=root@localhost:3399 stop
# Checking privileges.
# Performing STOP on all slaves.
# Executing stop on slave localhost:3399 Ok
# ...done.
D:\ushastry\MySQL Workbench 5.2.47 CE\utilities>
D:\ushastry\MySQL Workbench 5.2.47 CE\utilities>
D:\ushastry\MySQL Workbench 5.2.47 CE\utilities>mysqlrpladmin --master=root@localhost:3333 --slaves=root@localhost:3399 health
# Checking privileges.
#
# Replication Topology Health:
+------------+-------+---------+--------+------------+--------------------------------------------------------+
| host | port | role | state | gtid_mode | health |
+------------+-------+---------+--------+------------+--------------------------------------------------------+
| localhost | 3333 | MASTER | UP | OFF | OK |
| localhost | 3399 | SLAVE | UP | OFF | IO thread is not running., SQL thread is not running. |
+------------+-------+---------+--------+------------+--------------------------------------------------------+
# ...done.
D:\ushastry\MySQL Workbench 5.2.47 CE\utilities>mysqlrpladmin --master=root@localhost:3333 --slaves=root@localhost:3399 start
# Checking privileges.
# Performing START on all slaves.
# Executing start on slave localhost:3399 Ok
# ...done.
D:\ushastry\MySQL Workbench 5.2.47 CE\utilities>
D:\ushastry\MySQL Workbench 5.2.47 CE\utilities>mysqlrpladmin --master=root@localhost:3333 --slaves=root@localhost:3399 health
# Checking privileges.
#
# Replication Topology Health:
+------------+-------+---------+--------+------------+-----------------------------+
| host | port | role | state | gtid_mode | health |
+------------+-------+---------+--------+------------+-----------------------------+
| localhost | 3333 | MASTER | UP | OFF | OK |
| localhost | 3399 | SLAVE | UP | OFF | SQL thread is not running. |
+------------+-------+---------+--------+------------+-----------------------------+
# ...done.
D:\ushastry\MySQL Workbench 5.2.47 CE\utilities>
### From slave
mysql> show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: localhost
Master_User: repl
Master_Port: 3333
Connect_Retry: 60
Master_Log_File: mysqlsup3-bin.000003
Read_Master_Log_Pos: 120
Relay_Log_File: mysqlsup3-relay-bin.000009
Relay_Log_Pos: 287
Relay_Master_Log_File: mysqlsup3-bin.000003
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: 1593
Last_Error: Failed during slave workers initialization
Skip_Counter: 0
Exec_Master_Log_Pos: 120
Relay_Log_Space: 975
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: 1593
Last_SQL_Error: Failed during slave workers initialization
Replicate_Ignore_Server_Ids:
Master_Server_Id: 100
Master_UUID: d33c38b7-7411-11e2-b265-bc305bc8d894
Master_Info_File: mysql.slave_master_info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State:
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp: 130430 22:31:35
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 0
1 row in set (0.00 sec)
mysql> select * from mysql.slave_relay_log_info\G
*************************** 1. row ***************************
Number_of_lines: 7
Relay_log_name: .\mysqlsup3-relay-bin.000009
Relay_log_pos: 287
Master_log_name: mysqlsup3-bin.000003
Master_log_pos: 120
Sql_delay: 0
Number_of_workers: 0
Id: 1
1 row in set (0.00 sec)
mysql>
[11 Jul 2013 3:27]
Philip Olson
Fixed as of MySQL Utilities 1.2.4/1.3.3, and here's the changelog entry:
The "START SLAVE" statement failed when a MySQL server was started with
the "--master-info-repository=TABLE" and
"--relay-log-info-repository=TABLE" options, and with autocommit mode
disabled. This fix provides a workaround by enabling autocommit ("SET
autocommit=1") before executing a "START SLAVE" statement. This allows
the utility to function with past and future versions of MySQL server.
Thank you for the bug report.
