From: Date: February 20 2007 8:34pm Subject: bk commit into 5.1 tree (jonas:1.2416) BUG#26450 List-Archive: http://lists.mysql.com/commits/20218 X-Bug: 26450 Message-Id: <20070220193403.23DB54247AC@eel.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-02-20 20:33:53+01:00, jonas@eel.(none) +1 -0 ndb - write testcase for bug#26450... no solution however... storage/ndb/test/ndbapi/testNodeRestart.cpp@stripped, 2007-02-20 20:33:44+01:00, jonas@eel.(none) +66 -0 write testcase for bug#26450... no solution however... # 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: eel.(none) # Root: /home/jonas/src/51-work --- 1.39/storage/ndb/test/ndbapi/testNodeRestart.cpp 2007-02-20 20:34:02 +01:00 +++ 1.40/storage/ndb/test/ndbapi/testNodeRestart.cpp 2007-02-20 20:34:02 +01:00 @@ -1258,6 +1258,68 @@ return NDBT_OK; } +int +runBug26450(NDBT_Context* ctx, NDBT_Step* step) +{ + Uint32 i; + int result = NDBT_OK; + int loops = ctx->getNumLoops(); + int records = ctx->getNumRecords(); + NdbRestarter res; + Ndb* pNdb = GETNDB(step); + + int node = res.getRandomNotMasterNodeId(rand()); + Vector nodes; + for (unsigned i = 0; i 0)) + return NDBT_FAILED; + + if (res.waitClusterNoStart()) + return NDBT_FAILED; + + if (res.startNodes(nodes.getBase(), nodes.size())) + return NDBT_FAILED; + + if (res.waitNodesStarted(nodes.getBase(), nodes.size())) + return NDBT_FAILED; + } + + if (res.startNodes(&node, 1)) + return NDBT_FAILED; + + if (res.waitNodesStarted(&node, 1)) + return NDBT_FAILED; + + HugoTransactions trans (* ctx->getTab()); + if (trans.selectCount(pNdb) != 0) + return NDBT_FAILED; + + return NDBT_OK; +} + NDBT_TESTSUITE(testNodeRestart); TESTCASE("NoLoad", "Test that one node at a time can be stopped and then restarted "\ @@ -1598,6 +1660,10 @@ } TESTCASE("Bug26481", ""){ INITIALIZER(runBug26481); +} +TESTCASE("Bug26450", ""){ + INITIALIZER(runLoadTable); + INITIALIZER(runBug26450); } NDBT_TESTSUITE_END(testNodeRestart);