Bug #24571 | replication seems to generate an invalid insert command | ||
---|---|---|---|
Submitted: | 24 Nov 2006 12:07 | Modified: | 28 Nov 2006 9:30 |
Reporter: | Mark Zealey | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | 5.0.27 | OS: | |
Assigned to: | CPU Architecture: | Any |
[24 Nov 2006 12:07]
Mark Zealey
[24 Nov 2006 13:05]
Valeriy Kravchuk
Thank you for a problem report. Please, describe your upgrade procedure. Have you perfromed dump and restore, as recommended? I also noted that you gave different binary log quote from mentioned in that error message. In any case, please, send the results of SHOW CREATE TABLE and SHOW TABLE STATUS for that nuke_bbsessions table from master and slave.
[24 Nov 2006 13:42]
Roeland Mertens
I did the upgrade. We did do a dump & restore. on the master: mysql> show create table nuke_bbsessions\G *************************** 1. row *************************** Table: nuke_bbsessions Create Table: CREATE TABLE `nuke_bbsessions` ( `session_id` char(32) collate latin1_general_ci NOT NULL default '', `session_user_id` mediumint(8) NOT NULL default '0', `session_start` int(11) NOT NULL default '0', `session_time` int(11) NOT NULL default '0', `session_ip` char(8) collate latin1_general_ci NOT NULL default '0', `session_page` int(11) NOT NULL default '0', `session_logged_in` tinyint(1) NOT NULL default '0', PRIMARY KEY (`session_id`), KEY `session_user_id` (`session_user_id`), KEY `session_id_ip_user_id` (`session_id`,`session_ip`,`session_user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci 1 row in set (0.00 sec) mysql> show table status where name = 'nuke_bbsessions'\G *************************** 1. row *************************** Name: nuke_bbsessions Engine: MyISAM Version: 10 Row_format: Fixed Rows: 14 Avg_row_length: 57 Data_length: 3762 Max_data_length: 16044073672507391 Index_length: 12288 Data_free: 2964 Auto_increment: NULL Create_time: 2006-11-22 02:45:40 Update_time: 2006-11-24 13:41:41 Check_time: 2006-11-22 02:45:40 Collation: latin1_general_ci Checksum: NULL Create_options: Comment: 1 row in set (0.00 sec)
[24 Nov 2006 14:26]
Mark Zealey
We didn't do a dump and restore, but rather stopped mysql (or turned off write) and then used tar czf to take the slave copy. If I'm not mistaken, the error in the SHOW SLAVE STATUS command said it was that binlog file, and I put the entire contents of that binlog file into my first message... Database on the slave: mysql> use davefussell2 Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> show create table nuke_bbsessions\G *************************** 1. row *************************** Table: nuke_bbsessions Create Table: CREATE TABLE `nuke_bbsessions` ( `session_id` char(32) collate latin1_general_ci NOT NULL default '', `session_user_id` mediumint(8) NOT NULL default '0', `session_start` int(11) NOT NULL default '0', `session_time` int(11) NOT NULL default '0', `session_ip` char(8) collate latin1_general_ci NOT NULL default '0', `session_page` int(11) NOT NULL default '0', `session_logged_in` tinyint(1) NOT NULL default '0', PRIMARY KEY (`session_id`), KEY `session_user_id` (`session_user_id`), KEY `session_id_ip_user_id` (`session_id`,`session_ip`,`session_user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci 1 row in set (0.00 sec) mysql> show table status where name = 'nuke_bbsessions'\G *************************** 1. row *************************** Name: nuke_bbsessions Engine: MyISAM Version: 10 Row_format: Fixed Rows: 24 Avg_row_length: 57 Data_length: 1368 Max_data_length: 16044073672507391 Index_length: 6144 Data_free: 0 Auto_increment: NULL Create_time: 2006-11-22 02:45:40 Update_time: 2006-11-24 11:29:54 Check_time: 2006-11-23 15:42:18 Collation: latin1_general_ci Checksum: NULL Create_options: Comment: 1 row in set (0.00 sec)
[24 Nov 2006 14:40]
Roeland Mertens
as clarification : for the upgrade of MySQL we performed a dump and restore. For the configuration of the replication we used the procedure described by Mark.
[27 Nov 2006 13:14]
Mark Zealey
Looks like the problem was some faulty hardware during the transfer between the two boxes - when i copy the files manually and add them to the server it doesnt generate these errors...
[28 Nov 2006 7:36]
Valeriy Kravchuk
Thank you for additional checks. So, I am closing this report as not a bug in MySQL for now.
[28 Nov 2006 9:30]
Mark Zealey
Perhaps it would be possible in future to add some sort of checksumming to the binary log to ensure it was transmitted correctly? From what I've seen, the file itself seems pretty fragile...