Bug #41751 | expire_logs_days causes signal 11 when an SQL node starts | ||
---|---|---|---|
Submitted: | 26 Dec 2008 3:38 | Modified: | 18 Aug 2010 17:32 |
Reporter: | Mikiya Okuno | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Replication | Severity: | S1 (Critical) |
Version: | mysql-5.1-telco-6.3 | OS: | Linux |
Assigned to: | Jonas Oreland | CPU Architecture: | Any |
Tags: | mysql-5.1-telco-6.3.20 |
[26 Dec 2008 3:38]
Mikiya Okuno
[23 Apr 2009 14:15]
MySQL Verification Team
reminds me of bug #37027 !
[16 Dec 2009 10:00]
Sveta Smirnova
Bug #44693 and bug #20408 were marked as duplicates of this one.
[23 Dec 2009 9:55]
MySQL Verification Team
still affects mysql-cluster-gpl-7.0.6-linux-i686-glibc23
[23 Dec 2009 10:24]
MySQL Verification Team
still affects with mysql-cluster-gpl-7.0.9-linux-i686-glibc23.tar.gz also. It crashes in function ha_binlog_index_purge_file() on line 4007 because thd is NULL: 4006 binlog_func_foreach(thd, &bfn); 4007 if (thd->main_da.is_error()) 4008 return 1;
[23 Mar 2010 13:53]
Jonas Oreland
Proposed patch on top of 6.3-bzr 2010-03-23
Attachment: bug41751.patch (application/octet-stream, text), 2.04 KiB.
[23 Mar 2010 13:56]
Jonas Oreland
Hi guys Here is a quite ugly attempt to fix the problem. Fixing so that it does crash is "easy", however, if it also needs to work, this trickery is needed. Can someone please test if this seems to work (other than me) /Jonas
[24 Mar 2010 12:18]
Jonas Oreland
Attempt 2, 6.3 2010-03-24
Attachment: bug41751.patch.v2 (application/octet-stream, text), 3.80 KiB.
[24 Mar 2010 12:39]
Geert Vanderkelen
How to get old binary logs: A couple of flushes: mysql> FLUSH LOGS; Go to the OS and touch them with a date in the past: shell> touch -d "2010-03-01"
[15 Jun 2010 17:34]
Geert Vanderkelen
Tried patch.v2 with latest 7.1.4b and --expire-logs-days works fine now, i.e. doesn't crash mysqld and removes the binary logs.
[18 Aug 2010 8:51]
Jonas Oreland
version 3
Attachment: bug41751.patch.v3 (application/octet-stream, text), 4.17 KiB.
[18 Aug 2010 10:00]
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/116064 3255 Jonas Oreland 2010-08-18 ndb - bug#41751 - handle binlog purge during startup by temporarily created THD object (yuck)
[18 Aug 2010 10:27]
Bugs System
Pushed into mysql-5.1-telco-6.3 5.1.47-ndb-6.3.37 (revid:jonas@mysql.com-20100818095910-9oq1gvlzgf5eie0l) (version source revid:jonas@mysql.com-20100818095910-9oq1gvlzgf5eie0l) (merge vers: 5.1.47-ndb-6.3.37) (pib:20)
[18 Aug 2010 10:27]
Bugs System
Pushed into mysql-5.1-telco-7.0 5.1.47-ndb-7.0.18 (revid:jonas@mysql.com-20100818102121-bgdwgdwo9pdfltvh) (version source revid:jonas@mysql.com-20100818102121-bgdwgdwo9pdfltvh) (merge vers: 5.1.47-ndb-7.0.18) (pib:20)
[18 Aug 2010 10:44]
Jonas Oreland
pushed to 6.3.37, 7.0.18 and 7.1.7
[18 Aug 2010 17:32]
Jon Stephens
Documented as follows in the NDB-6.3.37, 7.0.18, and 7.1.7 changelogs: Specifying the --expire_logs_days option when there were old binary logs to delete caused SQL nodes to crash on startup. Closed.
[27 Sep 2011 14:29]
Santo Leto
Workaround: remove expire_logs_days variable from configuration file and set it with SET syntax: SET GLOBAL expire_logs_days=N;
[23 Mar 2012 17:41]
Micah Stevens
Even thought the symptoms are completely different, http://bugs.mysql.com/bug.php?id=20408 is marked as a dup of this one, so I thought I'd add a note that this seems to still be happening to me in 5.1.56-ndb-7.1.18-cluster-gpl-log I posted details in http://bugs.mysql.com/bug.php?id=20408