From: Date: April 3 2006 12:09pm Subject: bk commit into 4.1 tree (jonas:1.2489) BUG#18612 List-Archive: http://lists.mysql.com/commits/4407 X-Bug: 18612 Message-Id: <20060403100953.ACD1D34C777@perch.ndb.mysql.com> Below is the list of changes that have just been committed into a local 4.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 1.2489 06/04/03 12:09:50 jonas@stripped +2 -0 ndb - bug#18612 - partitioned startup add testprg for SR case aswell ndb/test/run-test/daily-basic-tests.txt 1.31 06/04/03 12:09:48 jonas@stripped +5 -1 Test also partitioned start during SR ndb/test/ndbapi/testNodeRestart.cpp 1.20 06/04/03 12:09:48 jonas@stripped +96 -0 Test also partitioned start during SR # 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/41-work --- 1.30/ndb/test/run-test/daily-basic-tests.txt 2006-03-31 18:53:06 +02:00 +++ 1.31/ndb/test/run-test/daily-basic-tests.txt 2006-04-03 12:09:48 +02:00 @@ -462,9 +462,13 @@ cmd: testNodeRestart args: -n Bug18414 T1 -max-time: 500 +max-time: 1000 cmd: testNodeRestart args: -n Bug18612 T1 + +max-time: 1000 +cmd: testNodeRestart +args: -n Bug18612SR T1 # OLD FLEX max-time: 500 --- 1.19/ndb/test/ndbapi/testNodeRestart.cpp 2006-04-03 11:26:27 +02:00 +++ 1.20/ndb/test/ndbapi/testNodeRestart.cpp 2006-04-03 12:09:48 +02:00 @@ -772,6 +772,96 @@ return NDBT_OK; } +int +runBug18612SR(NDBT_Context* ctx, NDBT_Step* step){ + + // Assume two replicas + NdbRestarter restarter; + if (restarter.getNumDbNodes() < 2) + { + ctx->stopTest(); + return NDBT_OK; + } + + Uint32 cnt = restarter.getNumDbNodes(); + + for(int loop = 0; loop < ctx->getNumLoops(); loop++) + { + int partition0[256]; + int partition1[256]; + bzero(partition0, sizeof(partition0)); + bzero(partition1, sizeof(partition1)); + Bitmask<4> nodesmask; + + Uint32 node1 = restarter.getDbNodeId(rand()%cnt); + for (Uint32 i = 0; i