Bug #19198 mysqld failure during DBT2
Submitted: 19 Apr 2006 14:41 Modified: 2 Nov 2006 5:10
Reporter: Stewart Smith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S1 (Critical)
Version:5.0.21 OS:
Assigned to: Stewart Smith

[19 Apr 2006 14:41] Stewart Smith
Description:
crash of mysqld null tOp in NdbTransaction::getNdbIndexScanOperation(NdbIndexImpl*,NdbTableImpl*)

How to repeat:
load DBT2 data
run test (with default threads etc i think... i deleted the darn test directory with a wrong keypress).

Suggested fix:
something close to:

===== storage/ndb/src/ndbapi/NdbTransaction.cpp 1.55 vs edited =====
--- 1.55/storage/ndb/src/ndbapi/NdbTransaction.cpp      2006-03-28 15:26:48 +11:00
+++ edited/storage/ndb/src/ndbapi/NdbTransaction.cpp    2006-04-19 23:54:02 +10:00
@@ -1192,9 +1192,9 @@
       if(tOp)
       {
        tOp->m_currentTable = table;
+       // Mark that this really an NdbIndexScanOperation
+       tOp->m_type = NdbOperation::OrderedIndexScan;
       }
-      // Mark that this really an NdbIndexScanOperation
-      tOp->m_type = NdbOperation::OrderedIndexScan;
       return tOp;
     } else {
       setOperationErrorCodeAbort(4271);
[19 Apr 2006 14:59] 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/5147
[19 Apr 2006 15:08] 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/5150
[19 Apr 2006 15:10] Stewart Smith
jonas approved patch.

pushed 5.1 patch (second patch) to mysql-5.1-new-ndb.

have not (yet) pushed 5.0 patch... more checks are possibly needed.

at time of writing this 5.1-new-ndb is at 5.1.10.
[21 Apr 2006 14:43] Tomas Ulin
pushed to 5.1.10
[25 Apr 2006 6:27] 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 fix in 5.1.10 changelog. Closed.
[16 Aug 2006 4:00] Stewart Smith
only 5.1 was pushed. 5.0 wasn't. reopening until we decide to/not to push patch to 5.0 (and its correctness)
[15 Sep 2006 21:38] Jonas Oreland
I looked through 5.0 code
And patch should be applied as is.
Please push to 5.0-ndb
[18 Sep 2006 6:20] Stewart Smith
pushed to 5.0-ndb tree

already in 5.1
[1 Nov 2006 14:34] Jonas Oreland
pushed into 5.0.29
[2 Nov 2006 5:10] 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 bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html

Documented bugfix for 5.0.29. Thanks, guys.
[4 Nov 2006 3:10] Jon Stephens
*Fix for 5.0 documented in 5.0.30 Release Notes.*