mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
ndb - bug#25090
add testcase ndb/test/ndbapi/testBasic.cpp: add testcase for bug#25090 ndb/test/run-test/daily-basic-tests.txt: add testcase for bug#25090
This commit is contained in:
@@ -1034,6 +1034,28 @@ runMassiveRollback2(NDBT_Context* ctx, NDBT_Step* step){
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
runBug25090(NDBT_Context* ctx, NDBT_Step* step){
|
||||||
|
|
||||||
|
Ndb* pNdb = GETNDB(step);
|
||||||
|
NdbDictionary::Dictionary * dict = pNdb->getDictionary();
|
||||||
|
|
||||||
|
HugoOperations ops(*ctx->getTab());
|
||||||
|
|
||||||
|
int loops = ctx->getNumLoops();
|
||||||
|
const int rows = ctx->getNumRecords();
|
||||||
|
|
||||||
|
while (loops--)
|
||||||
|
{
|
||||||
|
ops.startTransaction(pNdb);
|
||||||
|
ops.pkReadRecord(pNdb, 1, 1);
|
||||||
|
ops.execute_Commit(pNdb, AO_IgnoreError);
|
||||||
|
sleep(10);
|
||||||
|
ops.closeTransaction(pNdb);
|
||||||
|
}
|
||||||
|
|
||||||
|
return NDBT_OK;
|
||||||
|
}
|
||||||
|
|
||||||
NDBT_TESTSUITE(testBasic);
|
NDBT_TESTSUITE(testBasic);
|
||||||
TESTCASE("PkInsert",
|
TESTCASE("PkInsert",
|
||||||
@@ -1277,6 +1299,10 @@ TESTCASE("Fill",
|
|||||||
INITIALIZER(runPkRead);
|
INITIALIZER(runPkRead);
|
||||||
FINALIZER(runClearTable2);
|
FINALIZER(runClearTable2);
|
||||||
}
|
}
|
||||||
|
TESTCASE("Bug25090",
|
||||||
|
"Verify what happens when we fill the db" ){
|
||||||
|
STEP(runBug25090);
|
||||||
|
}
|
||||||
NDBT_TESTSUITE_END(testBasic);
|
NDBT_TESTSUITE_END(testBasic);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
@@ -211,6 +211,10 @@ max-time: 500
|
|||||||
cmd: testTimeout
|
cmd: testTimeout
|
||||||
args: T1
|
args: T1
|
||||||
|
|
||||||
|
max-time: 500
|
||||||
|
cmd: testBasic
|
||||||
|
args: -n Bug25090 T1
|
||||||
|
|
||||||
# SCAN TESTS
|
# SCAN TESTS
|
||||||
#
|
#
|
||||||
max-time: 500
|
max-time: 500
|
||||||
|
Reference in New Issue
Block a user