Skip to content

Commit 2060804

Browse files
committed
Bug#32130078 Bug#30647187 FIXES AUTOTEST EVENT DROP FAILURES
Removes the debug asserts added to investigate the mentioned bugs in upgrade/downgrade tests. The upgrade/downgrade tests create and drop events between data node restarts. Since, these event create and drop do not use schema transactions, data node failures are handled with request retries which can result in operations being attempted more than once, and failing on the second (and reported) attempt. So, until WL#4101 is implemented, the failure during event handling in testUpgrade.cpp is ignored. Change-Id: I827f2c2a6b06b05153bfb1a7b36112c7b394084d
1 parent acb1fd8 commit 2060804

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18898,12 +18898,6 @@ void Dbdict::dropEvent_sendReply(Signal* signal,
1889818898
ret->setErrorLine(evntRecPtr.p->m_errorLine);
1889918899
ret->setErrorNode(evntRecPtr.p->m_errorNode);
1890018900

18901-
// Attempt to get the trace to investigate sporadic failures
18902-
#ifdef ERROR_INSERT
18903-
ndbrequire(evntRecPtr.p->m_errorCode != 4710); // Investigate Bug#32130078
18904-
ndbrequire(evntRecPtr.p->m_errorCode != 1418); // Investigate Bug#30647187
18905-
#endif
18906-
1890718901
sendSignal(senderRef, GSN_DROP_EVNT_REF, signal,
1890818902
DropEvntRef::SignalLength, JBB);
1890918903
} else {

storage/ndb/test/ndbapi/testUpgrade.cpp

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,12 @@ createDropEvent(NDBT_Context* ctx, NDBT_Step* step, bool wait = true)
366366
{
367367
continue;
368368
}
369-
ndbout << "step " << step->getStepNo() << endl;
370-
ndbout << "Creating event for table: " << tab->getName() << endl;
369+
371370
if ((res = createEvent(pNdb, *tab) != NDBT_OK))
372371
{
373372
goto done;
374373
}
375-
ndbout << "step " << step->getStepNo() << endl;
376-
ndbout << "Dropping event for table: " << tab->getName() << endl;
374+
377375
if ((res = dropEvent(pNdb, *tab)) != NDBT_OK)
378376
{
379377
goto done;
@@ -658,8 +656,8 @@ int runUpgrade_NR1(NDBT_Context* ctx, NDBT_Step* step){
658656
if (restarter.waitNodesStarted(&nodeId, 1))
659657
return NDBT_FAILED;
660658

661-
if (createDropEvent(ctx, step))
662-
return NDBT_FAILED;
659+
// Return value is ignored until WL#4101 is implemented.
660+
createDropEvent(ctx, step);
663661
}
664662
}
665663

@@ -799,9 +797,10 @@ runUpgrade_Half(NDBT_Context* ctx, NDBT_Step* step)
799797

800798
CHK_NDB_READY(GETNDB(step));
801799

802-
if (event && createDropEvent(ctx, step))
800+
if (event)
803801
{
804-
return NDBT_FAILED;
802+
// Return value is ignored until WL#4101 is implemented.
803+
createDropEvent(ctx, step);
805804
}
806805

807806
ndbout << "Half started" << endl;
@@ -856,9 +855,10 @@ runUpgrade_Half(NDBT_Context* ctx, NDBT_Step* step)
856855

857856
CHK_NDB_READY(GETNDB(step));
858857

859-
if (event && createDropEvent(ctx, step))
858+
if (event)
860859
{
861-
return NDBT_FAILED;
860+
// Return value is ignored until WL#4101 is implemented.
861+
createDropEvent(ctx, step);
862862
}
863863
}
864864

@@ -1172,10 +1172,8 @@ runBasic(NDBT_Context* ctx, NDBT_Step* step)
11721172
trans.clearTable(pNdb, records/2);
11731173
break;
11741174
case 3:
1175-
if (createDropEvent(ctx, step, false))
1176-
{
1177-
return NDBT_FAILED;
1178-
}
1175+
// Return value is ignored until WL#4101 is implemented.
1176+
createDropEvent(ctx, step, false);
11791177
break;
11801178
}
11811179
}

0 commit comments

Comments
 (0)