From: Date: April 23 2007 3:38pm Subject: bk commit into 5.1 tree (jonas:1.2463) BUG#28023 List-Archive: http://lists.mysql.com/commits/25117 X-Bug: 28023 Message-Id: <20070423133811.E9CA07DA90@perch.ndb.mysql.com> Below is the list of changes that have just been committed into a local 5.1 repository of jonas. When jonas does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2007-04-23 15:38:06+02:00, jonas@stripped +2 -0 ndb - add (auto) testcase for bug#28023 storage/ndb/test/ndbapi/testNodeRestart.cpp@stripped, 2007-04-23 15:38:04+02:00, jonas@stripped +69 -0 add testcase for bug#28023 storage/ndb/test/run-test/daily-basic-tests.txt@stripped, 2007-04-23 15:38:04+02:00, jonas@stripped +4 -0 add testcase for bug#28023 # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: jonas # Host: perch.ndb.mysql.com # Root: /home/jonas/src/51-telco-gca --- 1.70/storage/ndb/test/run-test/daily-basic-tests.txt 2007-04-23 15:38:11 +02:00 +++ 1.71/storage/ndb/test/run-test/daily-basic-tests.txt 2007-04-23 15:38:11 +02:00 @@ -473,6 +473,10 @@ cmd: testNodeRestart args: -n Bug27283 T1 +max-time: 1000 +cmd: testNodeRestart +args: -n Bug28023 T7 D2 + max-time: 500 cmd: testScan args: -n ScanVariants --- 1.47/storage/ndb/test/ndbapi/testNodeRestart.cpp 2007-04-23 15:38:11 +02:00 +++ 1.48/storage/ndb/test/ndbapi/testNodeRestart.cpp 2007-04-23 15:38:11 +02:00 @@ -1473,6 +1473,72 @@ return NDBT_OK; } +int +runBug28023(NDBT_Context* ctx, NDBT_Step* step) +{ + int result = NDBT_OK; + int loops = ctx->getNumLoops(); + int records = ctx->getNumRecords(); + Ndb* pNdb = GETNDB(step); + NdbRestarter res; + + if (res.getNumDbNodes() < 2) + { + return NDBT_OK; + } + + + HugoTransactions hugoTrans(*ctx->getTab()); + if (hugoTrans.loadTable(pNdb, records) != 0){ + return NDBT_FAILED; + } + + if (hugoTrans.clearTable(pNdb, records) != 0) + { + return NDBT_FAILED; + } + + for (Uint32 i = 0; i