Bug #18597 simultaneous drop table and ndb statistics update triggers node failure
Submitted: 29 Mar 2006 2:05 Modified: 28 Apr 2006 9:04
Reporter: Brian Aker Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S1 (Critical)
Version:4.1, 5.0, 5.1 OS:Any (any)
Assigned to: Jonas Oreland

[29 Mar 2006 2:05] Brian Aker
Description:
ndb_cache2                     [ fail ]

Errors are (from /tmp/var-n_row-5/log/mysqltest-time) :
mysqltest: At line 353: query 'drop table t1, t2, t3, t4, t5' failed: 1051: Unknown table 't4,t5'
(the last lines may be the most important ones)
Result from queries before failure can be found in r/ndb_cache2.log

Killing Possible Leftover Processes
Restoring snapshot of databases
Resuming Tests

How to repeat:
https://intranet.mysql.com/~knielsen/getlog.pl?dir=mysql-5.1-new&entry=push-brian@zim.none...
[10 Apr 2006 15:09] Tomas Ulin
Seems to be interaction between drop table and util thread doing ndb_update_statistics (running scan)

ndbrequire in DI_FCOUNTCONF 
...
releaseScanResources(ScanRecordPtr scanPtr)
...
ndbrequire(scanPtr.p->m_running_scan_frags.isEmpty());

occational test failures in
ndb_cache2,  ndb_cache_multi2
[25 Apr 2006 14:03] 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/5471
[26 Apr 2006 5:54] 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/5545
[26 Apr 2006 10:19] Jonas Oreland
pushed into 5.1.10 and 5.0.22
[26 Apr 2006 12:57] Jonas Oreland
pushed to 4.1.19
[28 Apr 2006 9:04] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Documented bugfix in 4.1.19/5.0.21/5.1.10 changelogs; closed.