Bug #74344 | RESET MASTER fail to reset all binary logs when binlog index file is out of sync | ||
---|---|---|---|
Submitted: | 12 Oct 2014 22:00 | Modified: | 21 Aug 2015 12:25 |
Reporter: | Muhammad Irfan | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.6.21 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[12 Oct 2014 22:00]
Muhammad Irfan
[21 Aug 2015 12:25]
MySQL Verification Team
Hello Irfan, Thank you for the report. I'm not seeing this issue with 5.6.26 builds and most likely it is fixed. Could you please confirm this from your end as well? mysql> show variables like '%version%'; +-------------------------+---------------------------------------------------------+ | Variable_name | Value | +-------------------------+---------------------------------------------------------+ | innodb_version | 5.6.26 | | protocol_version | 10 | | slave_type_conversions | | | version | 5.6.26-enterprise-commercial-advanced-log | | version_comment | MySQL Enterprise Server - Advanced Edition (Commercial) | | version_compile_machine | x86_64 | | version_compile_os | linux-glibc2.5 | +-------------------------+---------------------------------------------------------+ 7 rows in set (0.00 sec) mysql> \! ls -l log/master-bin.[0-9]* -rw-rw---- 1 umshastr common 69411 Aug 21 11:22 log/master-bin.000001 -rw-rw---- 1 umshastr common 1361011 Aug 21 11:22 log/master-bin.000002 -rw-rw---- 1 umshastr common 1072 Aug 21 13:54 log/master-bin.000003 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000004 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000005 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000006 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000007 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000008 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000009 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000010 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000011 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000012 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000013 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000014 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000015 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000016 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000017 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000018 -rw-rw---- 1 umshastr common 168 Aug 21 14:00 log/master-bin.000019 -rw-rw---- 1 umshastr common 120 Aug 21 14:00 log/master-bin.000020 mysql> mysql> mysql> -- deleted entries from binary index file from master-bin.000001-master-bin.000014 mysql> \! cat log/master-bin.index /export/umesh/server/binaries/mysql-advanced-5.6.26/log/master-bin.000015 /export/umesh/server/binaries/mysql-advanced-5.6.26/log/master-bin.000016 /export/umesh/server/binaries/mysql-advanced-5.6.26/log/master-bin.000017 /export/umesh/server/binaries/mysql-advanced-5.6.26/log/master-bin.000018 /export/umesh/server/binaries/mysql-advanced-5.6.26/log/master-bin.000019 /export/umesh/server/binaries/mysql-advanced-5.6.26/log/master-bin.000020 mysql> mysql> SHOW MASTER STATUS; RESET MASTER; SHOW MASTER STATUS; +-------------------+----------+--------------+------------------+-------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +-------------------+----------+--------------+------------------+-------------------+ | master-bin.000020 | 120 | | | | +-------------------+----------+--------------+------------------+-------------------+ 1 row in set (0.00 sec) Query OK, 0 rows affected (0.00 sec) +-------------------+----------+--------------+------------------+-------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +-------------------+----------+--------------+------------------+-------------------+ | master-bin.000001 | 120 | | | | +-------------------+----------+--------------+------------------+-------------------+ 1 row in set (0.00 sec) mysql> \! ls -l log/master-bin.[0-9]* -rw-rw---- 1 umshastr common 120 Aug 21 14:16 log/master-bin.000001 mysql> \! cat log/master-bin.index /export/umesh/server/binaries/mysql-advanced-5.6.26/log/master-bin.000001 If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thanks, Umesh