added ndb testcase WritePartialIgnoreError

(currently causes nodefailure)
parent 3a50e99b
...@@ -1141,6 +1141,21 @@ int runBug_11133(NDBT_Context* ctx, NDBT_Step* step){ ...@@ -1141,6 +1141,21 @@ int runBug_11133(NDBT_Context* ctx, NDBT_Step* step){
return result; 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 runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
int result = NDBT_OK; int result = NDBT_OK;
const Uint32 max= 5; const Uint32 max= 5;
...@@ -1317,6 +1332,11 @@ TESTCASE("Bug_11133", ...@@ -1317,6 +1332,11 @@ TESTCASE("Bug_11133",
INITIALIZER(runBug_11133); INITIALIZER(runBug_11133);
FINALIZER(runClearTable); FINALIZER(runClearTable);
} }
TESTCASE("Bug_WritePartialIgnoreError",
"Test WritePartialIgnoreError\n"){
INITIALIZER(runBug_WritePartialIgnoreError);
FINALIZER(runClearTable);
}
TESTCASE("Scan_4006", TESTCASE("Scan_4006",
"Check that getNdbScanOperation does not get 4006\n"){ "Check that getNdbScanOperation does not get 4006\n"){
INITIALIZER(runLoadTable); INITIALIZER(runLoadTable);
......
...@@ -528,6 +528,10 @@ max-time: 500 ...@@ -528,6 +528,10 @@ max-time: 500
cmd: testNdbApi cmd: testNdbApi
args: -n Scan_4006 T1 D1 D2 args: -n Scan_4006 T1 D1 D2
max-time: 500
cmd: testNdbApi
args: -n Bug_WritePartialIgnoreError T1
#max-time: 500 #max-time: 500
#cmd: testInterpreter #cmd: testInterpreter
#args: T1 #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