Bug #24615 | Server crash during replication | ||
---|---|---|---|
Submitted: | 27 Nov 2006 10:15 | Modified: | 19 Mar 2007 15:48 |
Reporter: | Scott Wilson | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.0.27 | OS: | MacOS (Mac OSX 10.4.6) |
Assigned to: | CPU Architecture: | Any | |
Tags: | binlog, replication |
[27 Nov 2006 10:15]
Scott Wilson
[28 Nov 2006 9:45]
Valeriy Kravchuk
Thank you for a problem report. Please, send my.cnf content from both master, normal slave and problematic slave. Are that FreeBSD instances running on 64-bit platforms? Send SHOW CREATE TABLE for that SESSION table. Is it possible for you to upload binary/relay log that corresponds to this crash?
[28 Nov 2006 10:56]
Scott Wilson
master my.cnf (freebsd 6.1 amd64, 5.0.24)
Attachment: my.cnf.master (application/octet-stream, text), 1.75 KiB.
[28 Nov 2006 10:56]
Scott Wilson
normal slave my.cnf (freebsd 6.1 amd64, 5.0.27)
Attachment: my.cnf.slave_normal (application/octet-stream, text), 1.62 KiB.
[28 Nov 2006 10:57]
Scott Wilson
problem slave my.cnf (OS X Server 10.4.6 64-bit, 5.0.27 64-bit)
Attachment: my.cnf.slave_problem (application/octet-stream, text), 1.63 KiB.
[28 Nov 2006 11:19]
Scott Wilson
Hi, Yes all three machines are running 64-bit platforms. I've attached the SHOW CREATE TABLE output below for the SESSION table and the MY_IDEALIST_MATCH table which is where I suspect the problem lies. I think the key corruption manifests itself in the SESSION table because it is very busy with writes. The crash seems to correspond to the first complex insert query into MY_IDEALIST_MATCH (see attached binlog output). Once a day a process is run that executes a whole series of these, and once the server crashes and restarts it runs them all without incident. I've uploaded two binlog excerpts, in the second one the crash is still very near the first of these complex queries, but the restart point is after rather than before the query in the second. CREATE TABLE `SESSION` ( `ID` int(11) NOT NULL auto_increment, `CREATION_DATE` int(11) NOT NULL default '0', `MODIFICATION_DATE` int(11) NOT NULL default '0', `LAST_ACTIVE_DATE` int(11) NOT NULL default '0', `CLIENT_IP` char(16) NOT NULL default '0', `CONTEXT_NUMBER` int(11) NOT NULL default '0', `USER_ID` int(11) default NULL, `USER_IS_AUTHENTICATED` smallint(6) NOT NULL default '0', PRIMARY KEY (`ID`), KEY `LAST_ACTIVE_DATE` (`LAST_ACTIVE_DATE`) ) ENGINE=MyISAM AUTO_INCREMENT=79697223 DEFAULT CHARSET=latin1 DELAY_KEY_WRITE=1 CREATE TABLE `MY_IDEALIST_MATCH` ( `ID` int(11) NOT NULL auto_increment, `CREATION_DATE` int(11) NOT NULL default '0', `MODIFICATION_DATE` int(11) NOT NULL default '0', `USER_ID` int(11) NOT NULL default '0', `ASSET_TYPE_ID` int(11) NOT NULL default '0', `ASSET_ID` int(11) NOT NULL default '0', `HAS_BEEN_VISITED` tinyint(4) NOT NULL default '0', `MY_IDEALIST_EMAIL_ME_PREFERENCE_ID` int(11) NOT NULL default '0', `MY_IDEALIST_MATCH_RUN_ID` int(11) NOT NULL default '0', `ASSET_TAG_ID` int(11) NOT NULL default '0', PRIMARY KEY (`ID`), KEY `MY_IDEALIST_QUALIFIER_ID` (`MY_IDEALIST_EMAIL_ME_PREFERENCE_ID`), KEY `MY_IDEALIST_EMAIL_ME_PREFERENCE_ID` (`MY_IDEALIST_EMAIL_ME_PREFERENCE_ID`), KEY `ASSET_ID` (`ASSET_ID`,`ASSET_TYPE_ID`,`MY_IDEALIST_MATCH_RUN_ID`), KEY `USER_ID` (`USER_ID`,`ASSET_ID`), KEY `MY_IDEALIST_MATCH_RUN_ID` (`MY_IDEALIST_MATCH_RUN_ID`,`USER_ID`) ) ENGINE=MyISAM AUTO_INCREMENT=17435900 DEFAULT CHARSET=latin1 *************************** 1. row *************************** Name: MY_IDEALIST_MATCH Engine: MyISAM Version: 10 Row_format: Fixed Rows: 17289589 Avg_row_length: 38 Data_length: 657004952 Max_data_length: 10696049115004927 Index_length: 1609876480 Data_free: 570 Auto_increment: 17449410 Create_time: 2006-11-10 04:31:32 Update_time: 2006-11-28 05:46:40 Check_time: 2006-11-28 05:06:43 Collation: latin1_swedish_ci Checksum: NULL Create_options: Comment:
[19 Feb 2007 15:48]
Valeriy Kravchuk
Sorry for a delay with this report. Please, send the results of: free and ulimit -a commands for the user that runs MySQL server on that problematic slave. You may need up to 1600M of memory (and a lot of file descriptors) in some cases with that my.cnf you have. Have you tried to upgrade OS to 10.4.7 or 10.4.8?
[20 Mar 2007 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".