Bug #67360 | MySQL 5.6, GTID and ib_log_file resizing, and losing data | ||
---|---|---|---|
Submitted: | 24 Oct 2012 14:37 | Modified: | 4 Dec 2012 18:11 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.6.7-rc | OS: | Linux (CentOS 6.3) |
Assigned to: | CPU Architecture: | Any | |
Tags: | windmill |
[24 Oct 2012 14:37]
Simon Mudd
[24 Oct 2012 16:20]
Simon Mudd
The "build the slaves process", usually consists of build an empty master, stop mysql, rsync /path/to/datadir to the new server, remove auto.cnf (so it will get regenerated), then then check the binlog position of the master and do a CHANGE MASTER TO master_host = <master_server>, master_user = ..., master_log_file = latest_binlog_file, master_log_pos = size of latest_binlog_file. start slave. That seems to work, or has worked fine for non-GTID setups. I may have have done something wrong, but certainly SHOW SLAVE STATUS after doing this on both slaves showed SQL and I/O threads up and no errors, or replication delays. So while the cause of this problem may have been user error, the fact I managed to shoot myself silently in the foot is what concerns me. Perhaps the resizing of the ib_log_files was not related, but something else was done incorrectly but given the logging shows _no_ errors between the times shown when replication was restarted (121023 9:15:10) and later in the evening (121023 20:10:19) I'm trying to figure out how all of a sudden this error happened, and it's currently not clear to me how to diagnose this and catch it before it's a real problem. The same issue happened identically on both slaves.
[4 Dec 2012 18:11]
Gillian Gunson
Simon has agreed to close this bug, as the original problem was discussed in an Oracle SR and other bugs and feature requests created from that. The missing slave data cannot be verified due to lack of original evidence or a test case at this time.