Commit 38961d02 authored by unknown's avatar unknown

added ndb testcase WritePartialIgnoreError

(currently causes nodefailure)


storage/ndb/test/ndbapi/testNdbApi.cpp:
  added ndb testcase WritePartialIgnoreError
storage/ndb/test/run-test/daily-basic-tests.txt:
  added ndb testcase WritePartialIgnoreError
parent f39f3b1b
......@@ -1141,6 +1141,21 @@ int runBug_11133(NDBT_Context* ctx, NDBT_Step* step){
return result;
}
int runBug_WritePartialIgnoreError(NDBT_Context* ctx, NDBT_Step* step){
int result = NDBT_OK;
const NdbDictionary::Table* pTab = ctx->getTab();
HugoOperations hugoOps(*pTab);
Ndb* pNdb = GETNDB(step);
C2(hugoOps.startTransaction(pNdb) == 0);
C2(hugoOps.pkWritePartialRecord(pNdb, 0, 1) == 0);
C2(hugoOps.execute_Commit(pNdb, AO_IgnoreError) == 0);
C2(hugoOps.closeTransaction(pNdb) == 0);
return result;
}
int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
int result = NDBT_OK;
const Uint32 max= 5;
......@@ -1317,6 +1332,11 @@ TESTCASE("Bug_11133",
INITIALIZER(runBug_11133);
FINALIZER(runClearTable);
}
TESTCASE("Bug_WritePartialIgnoreError",
"Test WritePartialIgnoreError\n"){
INITIALIZER(runBug_WritePartialIgnoreError);
FINALIZER(runClearTable);
}
TESTCASE("Scan_4006",
"Check that getNdbScanOperation does not get 4006\n"){
INITIALIZER(runLoadTable);
......
......@@ -528,6 +528,10 @@ max-time: 500
cmd: testNdbApi
args: -n Scan_4006 T1 D1 D2
max-time: 500
cmd: testNdbApi
args: -n Bug_WritePartialIgnoreError T1
#max-time: 500
#cmd: testInterpreter
#args: T1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment