Some days ago we found very interesting bug report with my friend: http://bugs.mysql.com/bug.php?id=71879
Problem is that, if a client moves binlog files to the other folder, stops MySQL server, update in the config file bin_log and bin_log_index values for a new path and starts server again, then the result of SHOW BINARY LOG command will be wrong:
mysql> show binary logs; +-------------------------+-----------+ | Log_name | File_size | +-------------------------+-----------+ | cluster-repo-bin.000001 | 120 | | cluster-repo-bin.000002 | 0 | | cluster-repo-bin.000003 | 0 | | cluster-repo-bin.000004 | 0 | | cluster-repo-bin.000005 | 0 | | cluster-repo-bin.000006 | 120 | +-------------------------+-----------+
As you see, the size of some binlog files are zero. So why?
If you …
[Read more]