Bug #72450 Replication down after disabling / enabling network card adapter
| Submitted: | 25 Apr 2014 8:46 | Modified: | 16 Jul 2014 14:07 |
|---|---|---|---|
| Reporter: | Simon Jonhson | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
| Version: | 5.6.16 | OS: | Windows (Windows Server 2008 R2 Standard) |
| Assigned to: | CPU Architecture: | Any |
[25 Apr 2014 8:46]
Simon Jonhson
[25 Apr 2014 8:50]
Simon Jonhson
Primary "my.ini" file
Attachment: Primary_my.ini (application/octet-stream, text), 14.04 KiB.
[25 Apr 2014 8:50]
Simon Jonhson
Secondary "my.ini" file
Attachment: Secondary_my.ini (application/octet-stream, text), 14.04 KiB.
[25 Apr 2014 9:12]
Simon Jonhson
I forgot to mention but to solve this issue, I have to perform a "STOP SLAVE;" and "START SLAVE;" queries on both servers. After that, everything is back to normal -> replication is working both ways.
[25 Apr 2014 20:24]
Simon Jonhson
Hi, Using the parameter "slave-net-timeout = 30" inside the "my.ini" files seems to work now. So the scenario is the following : 1) Disable the network card adapter on vSphere for the primary server 2) Wait 5 minutes 3) Add 1 record inside the secondary database 4) Wait 5 minutes 4) Enable the network card adapter on vSphere for the primary server Result : On step 5, the replication is fully working after maximum 30 seconds. Note : My issue is solved but I wonder why the parameter is set to 3600 (1 hour) by default? If I didn't change it, it'll take 1 hour for the replication to work again and in a production environment, this is not acceptable.
[28 Apr 2014 15:01]
Simon Jonhson
Severity has been changed according to the workaround.
[16 Jul 2014 14:07]
MySQL Verification Team
Thank you for taking the time to write to us, but this is not a bug. Replication is asynchronous - slaves need not be connected permanently to receive updates from the master. This means that updates can occur over long-distance connections and even over temporary or intermittent connections such as a dial-up service. Depending on the configuration, you can replicate all databases, selected databases, or even selected tables within a database This is by design, hence some of the parameters needs to be adjusted as per the environment/requirement etc.. It is explained here - http://dev.mysql.com/doc/refman/5.6/en/replication-options-slave.html#option_mysqld_slave-... first re connection happens when slave-net-timeout is due and only after it slave tries to reconnect every master-connect-retry seconds. Default value for slave-net-timeout is 3600 seconds.. Also, see similar issues reported - Bug #11256, Bug #47721, Bug #21491
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 2.080 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.