Bug #52859 | Replication fails to start after an SQL node restart | ||
---|---|---|---|
Submitted: | 15 Apr 2010 14:42 | Modified: | 12 May 2010 10:20 |
Reporter: | Carlos Pinera | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Replication | Severity: | S2 (Serious) |
Version: | mysql-5.1-telco-7.1 | OS: | Linux (RedHad 5.4 and CentOS) |
Assigned to: | Martin Skold | CPU Architecture: | Any |
Tags: | 7.1.3, replication, sql node restart, telco-7.1 bzr |
[15 Apr 2010 14:42]
Carlos Pinera
[16 Apr 2010 7:38]
Sveta Smirnova
Thank you for the report. Verified as described.
[16 Apr 2010 13:02]
Tom Farvour
We are having the same bug with 7.1.3 (MySQL 5.1.44), and also was having the problem with 7.0.13 (MySQL 5.1.41) as described. It wasn't an issue in 7.0.9 (MySQL 5.1.39) Please fix.
[27 Apr 2010 9:10]
Valenti Jove
We have the same bug (mysql cluster 7.1.3). Replication is running ok. We do a mysql stop and mysql start, and replication doesn't work anymore. >start slave; ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log >show slave status; +----------------+--------------+-------------+-------------+---------------+------------------+---------------------+----------------+---------------+-----------------------+------------------+-------------------+-----------------+---------------------+--------------------+------------------------+-------------------------+-----------------------------+------------+------------+--------------+---------------------+-----------------+-----------------+----------------+---------------+--------------------+--------------------+--------------------+-----------------+-------------------+----------------+-----------------------+-------------------------------+---------------+---------------+----------------+----------------+-------------+-----------------------------+------------------+ | Slave_IO_State | Master_Host | Master_User | Master_Port | Connect_Retry | Master_Log_File | Read_Master_Log_Pos | Relay_Log_File | Relay_Log_Pos | Relay_Master_Log_File | Slave_IO_Running | Slave_SQL_Running | Replicate_Do_DB | Replicate_Ignore_DB | Replicate_Do_Table | Replicate_Ignore_Table | Replicate_Wild_Do_Table | Replicate_Wild_Ignore_Table | Last_Errno | Last_Error | Skip_Counter | Exec_Master_Log_Pos | Relay_Log_Space | Until_Condition | Until_Log_File | Until_Log_Pos | Master_SSL_Allowed | Master_SSL_CA_File | Master_SSL_CA_Path | Master_SSL_Cert | Master_SSL_Cipher | Master_SSL_Key | Seconds_Behind_Master | Master_SSL_Verify_Server_Cert | Last_IO_Errno | Last_IO_Error | Last_SQL_Errno | Last_SQL_Error | Master_Bind | Replicate_Ignore_Server_Ids | Master_Server_Id | +----------------+--------------+-------------+-------------+---------------+------------------+---------------------+----------------+---------------+-----------------------+------------------+-------------------+-----------------+---------------------+--------------------+------------------------+-------------------------+-----------------------------+------------+------------+--------------+---------------------+-----------------+-----------------+----------------+---------------+--------------------+--------------------+--------------------+-----------------+-------------------+----------------+-----------------------+-------------------------------+---------------+---------------+----------------+----------------+-------------+-----------------------------+------------------+ | | 192.168.10.7 | repl | 0 | 0 | mysql-bin.001320 | 0 | | 0 | | No | No | db | | | | db.% | | 0 | | 0 | 0 | 0 | None | | 0 | No | | | | | | NULL | No | 0 | | 0 | | | | 0 | +----------------+--------------+-------------+-------------+---------------+------------------+---------------------+----------------+---------------+-----------------------+------------------+-------------------+-----------------+---------------------+--------------------+------------------------+-------------------------+-----------------------------+------------+------------+--------------+---------------------+-----------------+-----------------+----------------+---------------+--------------------+--------------------+--------------------+-----------------+-------------------+----------------+-----------------------+-------------------------------+---------------+---------------+----------------+----------------+-------------+-----------------------------+------------------+
[5 May 2010 11:24]
Martin Skold
Seems the master.info file on slave had two lines swapped, making patch and adding new test case.
[6 May 2010 12:16]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/107634 3192 Martin Skold 2010-05-06 Bug#52859 Replication fails to start after an SQL node restart: Lines for heartbeat period and bind addr were swapped in master.info modified: sql/rpl_mi.cc
[6 May 2010 12:18]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/107635 3193 Martin Skold 2010-05-06 Bug#52859 Replication fails to start after an SQL node restart: Added new test for restarting slave added: mysql-test/suite/rpl_ndb/r/rpl_ndb_slave_restart.result mysql-test/suite/rpl_ndb/t/rpl_ndb_slave_restart.test
[6 May 2010 12:28]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/107637 3525 Martin Skold 2010-05-06 [merge] Merge added: mysql-test/suite/rpl_ndb/r/rpl_ndb_slave_restart.result mysql-test/suite/rpl_ndb/t/rpl_ndb_slave_restart.test modified: sql/rpl_mi.cc
[6 May 2010 12:31]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/107638 3594 Martin Skold 2010-05-06 [merge] Merge added: mysql-test/suite/rpl_ndb/r/rpl_ndb_slave_restart.result mysql-test/suite/rpl_ndb/t/rpl_ndb_slave_restart.test modified: sql/rpl_mi.cc
[6 May 2010 12:38]
Bugs System
Pushed into 5.1.44-ndb-7.0.15 (revid:martin.skold@mysql.com-20100506123735-3zd8rkua1ycl569c) (version source revid:martin.skold@mysql.com-20100506122822-2hntg1bkhkxxsh1m) (merge vers: 5.1.44-ndb-7.0.15) (pib:16)
[6 May 2010 12:41]
Bugs System
Pushed into 5.1.44-ndb-6.3.34 (revid:martin.skold@mysql.com-20100506124030-01g0x6mi14sbb92g) (version source revid:martin.skold@mysql.com-20100506121756-37ny8k4n3fmft5oq) (merge vers: 5.1.44-ndb-6.3.34) (pib:16)
[10 May 2010 6:25]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/107816 3529 Martin Skold 2010-05-10 Bug#52859 Replication fails to start after an SQL node restart: Fixed test case to work in Windows modified: mysql-test/suite/rpl_ndb/r/rpl_ndb_slave_restart.result mysql-test/suite/rpl_ndb/t/rpl_ndb_slave_restart.test
[10 May 2010 6:27]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/107817 3600 Martin Skold 2010-05-10 [merge] Merge modified: mysql-test/suite/rpl_ndb/r/rpl_ndb_slave_restart.result mysql-test/suite/rpl_ndb/t/rpl_ndb_slave_restart.test
[12 May 2010 10:20]
Jon Stephens
Documented bugfix in the NDB-6.3.34, 7.0.15, and 7.1.4 changelogs, as follows: Replication failed after a restart of the slave SQL node, due to an error in writing the master.info file. Closed.