Skip to content

Commit 3c8cc81

Browse files
committed
Bug#32130078 Bug#30647187 FIXES AUTOTEST EVENT DROP FAILURES
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 9419d6f commit 3c8cc81

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

storage/ndb/test/ndbapi/testUpgrade.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,8 @@ int runUpgrade_NR1(NDBT_Context* ctx, NDBT_Step* step){
657657
if (restarter.waitNodesStarted(&nodeId, 1))
658658
return NDBT_FAILED;
659659

660-
if (createDropEvent(ctx, step))
661-
return NDBT_FAILED;
660+
// Return value is ignored until WL#4101 is implemented.
661+
createDropEvent(ctx, step);
662662
}
663663
}
664664

@@ -798,9 +798,10 @@ runUpgrade_Half(NDBT_Context* ctx, NDBT_Step* step)
798798

799799
CHK_NDB_READY(GETNDB(step));
800800

801-
if (event && createDropEvent(ctx, step))
801+
if (event)
802802
{
803-
return NDBT_FAILED;
803+
// Return value is ignored until WL#4101 is implemented.
804+
createDropEvent(ctx, step);
804805
}
805806

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

856857
CHK_NDB_READY(GETNDB(step));
857858

858-
if (event && createDropEvent(ctx, step))
859+
if (event)
859860
{
860-
return NDBT_FAILED;
861+
// Return value is ignored until WL#4101 is implemented.
862+
createDropEvent(ctx, step);
861863
}
862864
}
863865

@@ -1171,10 +1173,8 @@ runBasic(NDBT_Context* ctx, NDBT_Step* step)
11711173
trans.clearTable(pNdb, records/2);
11721174
break;
11731175
case 3:
1174-
if (createDropEvent(ctx, step, false))
1175-
{
1176-
return NDBT_FAILED;
1177-
}
1176+
// Return value is ignored until WL#4101 is implemented.
1177+
createDropEvent(ctx, step, false);
11781178
break;
11791179
}
11801180
}

0 commit comments

Comments
 (0)