mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
This commit is contained in:
@ -897,6 +897,12 @@ void Dbtc::execREAD_NODESCONF(Signal* signal)
|
|||||||
hostptr.p->hostStatus = HS_ALIVE;
|
hostptr.p->hostStatus = HS_ALIVE;
|
||||||
c_alive_nodes.set(i);
|
c_alive_nodes.set(i);
|
||||||
}//if
|
}//if
|
||||||
|
|
||||||
|
if (NodeBitmask::get(readNodes->startedNodes, i))
|
||||||
|
{
|
||||||
|
jam();
|
||||||
|
hostptr.p->m_nf_bits = HostRecord::NF_STARTED;
|
||||||
|
}
|
||||||
}//if
|
}//if
|
||||||
}//for
|
}//for
|
||||||
ndbsttorry010Lab(signal);
|
ndbsttorry010Lab(signal);
|
||||||
@ -10100,6 +10106,7 @@ void Dbtc::inithost(Signal* signal)
|
|||||||
hostptr.p->noOfWordsTCINDXCONF = 0;
|
hostptr.p->noOfWordsTCINDXCONF = 0;
|
||||||
hostptr.p->noOfPackedWordsLqh = 0;
|
hostptr.p->noOfPackedWordsLqh = 0;
|
||||||
hostptr.p->hostLqhBlockRef = calcLqhBlockRef(hostptr.i);
|
hostptr.p->hostLqhBlockRef = calcLqhBlockRef(hostptr.i);
|
||||||
|
hostptr.p->m_nf_bits = 0;
|
||||||
}//for
|
}//for
|
||||||
c_alive_nodes.clear();
|
c_alive_nodes.clear();
|
||||||
}//Dbtc::inithost()
|
}//Dbtc::inithost()
|
||||||
|
@ -963,12 +963,62 @@ int runBug24717(NDBT_Context* ctx, NDBT_Step* step){
|
|||||||
|
|
||||||
restarter.startNodes(&nodeId, 1);
|
restarter.startNodes(&nodeId, 1);
|
||||||
|
|
||||||
for (Uint32 i = 0; i < 100; i++)
|
do {
|
||||||
{
|
for (Uint32 i = 0; i < 100; i++)
|
||||||
hugoTrans.pkReadRecords(pNdb, 100, 1, NdbOperation::LM_CommittedRead);
|
{
|
||||||
}
|
hugoTrans.pkReadRecords(pNdb, 100, 1, NdbOperation::LM_CommittedRead);
|
||||||
|
}
|
||||||
|
} while (restarter.waitClusterStarted(5) != 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
return NDBT_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
runBug29364(NDBT_Context* ctx, NDBT_Step* step){
|
||||||
|
int result = NDBT_OK;
|
||||||
|
int loops = ctx->getNumLoops();
|
||||||
|
int records = ctx->getNumRecords();
|
||||||
|
NdbRestarter restarter;
|
||||||
|
Ndb* pNdb = GETNDB(step);
|
||||||
|
|
||||||
|
HugoTransactions hugoTrans(*ctx->getTab());
|
||||||
|
|
||||||
|
if (restarter.getNumDbNodes() < 4)
|
||||||
|
return NDBT_OK;
|
||||||
|
|
||||||
|
int dump0[] = { 9000, 0 } ;
|
||||||
|
int dump1[] = { 9001, 0 } ;
|
||||||
|
Uint32 ownNode = refToNode(pNdb->getReference());
|
||||||
|
dump0[1] = ownNode;
|
||||||
|
|
||||||
|
for (; loops; loops --)
|
||||||
|
{
|
||||||
|
int node0 = restarter.getDbNodeId(rand() % restarter.getNumDbNodes());
|
||||||
|
int node1 = restarter.getRandomNodeOtherNodeGroup(node0, rand());
|
||||||
|
|
||||||
|
restarter.restartOneDbNode(node0, false, true, true);
|
||||||
|
restarter.waitNodesNoStart(&node0, 1);
|
||||||
|
restarter.startNodes(&node0, 1);
|
||||||
restarter.waitClusterStarted();
|
restarter.waitClusterStarted();
|
||||||
|
|
||||||
|
restarter.restartOneDbNode(node1, false, true, true);
|
||||||
|
restarter.waitNodesNoStart(&node1, 1);
|
||||||
|
if (restarter.dumpStateOneNode(node1, dump0, 2))
|
||||||
|
return NDBT_FAILED;
|
||||||
|
|
||||||
|
restarter.startNodes(&node1, 1);
|
||||||
|
|
||||||
|
do {
|
||||||
|
|
||||||
|
for (Uint32 i = 0; i < 100; i++)
|
||||||
|
{
|
||||||
|
hugoTrans.pkReadRecords(pNdb, 100, 1, NdbOperation::LM_CommittedRead);
|
||||||
|
}
|
||||||
|
} while (restarter.waitClusterStarted(5) != 0);
|
||||||
|
|
||||||
|
if (restarter.dumpStateOneNode(node1, dump1, 1))
|
||||||
|
return NDBT_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NDBT_OK;
|
return NDBT_OK;
|
||||||
@ -1981,6 +2031,9 @@ TESTCASE("Bug25554", ""){
|
|||||||
TESTCASE("Bug28717", ""){
|
TESTCASE("Bug28717", ""){
|
||||||
INITIALIZER(runBug28717);
|
INITIALIZER(runBug28717);
|
||||||
}
|
}
|
||||||
|
TESTCASE("Bug29364", ""){
|
||||||
|
INITIALIZER(runBug29364);
|
||||||
|
}
|
||||||
NDBT_TESTSUITE_END(testNodeRestart);
|
NDBT_TESTSUITE_END(testNodeRestart);
|
||||||
|
|
||||||
int main(int argc, const char** argv){
|
int main(int argc, const char** argv){
|
||||||
|
@ -553,6 +553,10 @@ max-time: 1000
|
|||||||
cmd: testNodeRestart
|
cmd: testNodeRestart
|
||||||
args: -n Bug26481 T1
|
args: -n Bug26481 T1
|
||||||
|
|
||||||
|
max-time: 1000
|
||||||
|
cmd: testNodeRestart
|
||||||
|
args: -n Bug29364 T1
|
||||||
|
|
||||||
#
|
#
|
||||||
# DICT TESTS
|
# DICT TESTS
|
||||||
max-time: 1500
|
max-time: 1500
|
||||||
|
Reference in New Issue
Block a user