Bug #83684 | mysqlfailover fails to run CHANGE MASTER against 5.7.16 server | ||
---|---|---|---|
Submitted: | 4 Nov 2016 1:43 | Modified: | 28 Nov 2016 20:01 |
Reporter: | Owen Owen | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Utilities | Severity: | S2 (Serious) |
Version: | 1.6.4 | OS: | CentOS (7.2) |
Assigned to: | CPU Architecture: | Any |
[4 Nov 2016 1:43]
Owen Owen
[4 Nov 2016 2:03]
Owen Owen
I modified replication.py to always use MASTER_AUTO_POSITION=1 and the issue persisted. It seems that something is killing the slaves connection before it is used.
[4 Nov 2016 2:28]
Owen Owen
I added the following block to server.py exec_query() after the assert statement and it seems to work around the issue. if not self.db_conn.is_connected(): logging.log(logging.INFO, "Re-establishing connection to execute query {0}: {1}".format(query_str, self.host)) self.db_conn = self.get_connection()
[21 Nov 2016 19:31]
Chuck Bell
Please specify the version of MySQL Connector/Python you are using.
[21 Nov 2016 19:34]
Owen Owen
mysql-connector-python-2.1.4-1.el7.x86_64
[22 Nov 2016 11:53]
Chiranjeevi Battula
Hello Owen, Thank you for your feedback. Could you please try with mysql-connector-python-2.1.3 version? Thanks, Chiranjeevi.
[22 Nov 2016 19:46]
Owen Owen
I redid my test with mysql-connector-python-2.1.3 and failover worked correctly.
[24 Nov 2016 7:04]
Chiranjeevi Battula
Hello Owen, Thank you for your feedback. This is most likely duplicate of Bug #83864, please see Bug #83864. Thanks, Chiranjeevi.
[28 Nov 2016 20:01]
Owen Owen
I do not have access to view Bug #83864