Bug #38717 NDBAPI : NdbScanOperation::readTuples() can be called > once without error
Submitted: 11 Aug 2008 12:22 Modified: 5 Oct 2008 16:56
Reporter: Frazer Clement Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: NDB API Severity:S3 (Non-critical)
Version:5.1-telco-6.2 OS:Any
Assigned to: Frazer Clement CPU Architecture:Any

[11 Aug 2008 12:22] Frazer Clement
Description:
Semantics of the old Api NdbScanOperation::readTuples() call is that it should only be called once.
However, in mysql-5.1-telco-6.2 and above, it can be called multiple times without error.

How to repeat:
Execute NDB test :

testScan -nOnlyOpenScanOnce T6

Suggested fix:
Add state to Scan Operation to ensure that readTuples() is only called once.
[11 Aug 2008 12:44] 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/51303
[11 Aug 2008 12:46] 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/51304
[11 Aug 2008 12:52] 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/51306
[11 Aug 2008 14:19] 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/51318
[11 Aug 2008 14:21] 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/51319
[11 Aug 2008 14:38] 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/51321
[12 Sep 2008 9:13] Jon Stephens
Documented bugfix in the NDB 6.2.16 and 6.3.17 changelogs as follows:

        The NdbScanOperation::readTuples() method could be called multiple times
        without error.
[5 Oct 2008 16:56] Jon Stephens
Already documented for NDB 6.2/6.3 as noted previously; closing.
[12 Dec 2008 23:27] Bugs System
Pushed into 6.0.6-alpha  (revid:frazer@mysql.com-20080811124424-xe0w2ya52nmymorw) (version source revid:jonas@mysql.com-20080813092004-7zlf6eu87i4ziwm2) (pib:5)