Skip to content

Commit 12434fa

Browse files
author
Maitrayi Sabaratnam
committed
Bug# 35728308 - Autotest testNodeRestart -n CheckGcpStopTimerDistributed
Increase the timeouts used in the test case in order to avoid it sporadically times out, esp. for many node/many replica configurations. Change-Id: Iaf236a0fb590cb863dfb42e1cd3c2b829fd36f08
1 parent ab35924 commit 12434fa

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

storage/ndb/test/ndbapi/testNodeRestart.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10825,10 +10825,11 @@ int runDelayGCP_SAVEREQ(NDBT_Context* ctx, NDBT_Step* step)
1082510825
}
1082610826

1082710827
int result = NDBT_OK;
10828+
unsigned int timeout = 240; // To suite many node/replica tests
1082810829
const int victim = restarter.getNode(NdbRestarter::NS_RANDOM);
1082910830
const Uint32 lcp_max_lag = ctx->getProperty("MaxLcpLag",
1083010831
Uint32(60));
10831-
const Uint32 clear_error_insert_seconds = 20;
10832+
const Uint32 clear_error_insert_seconds = 60;
1083210833

1083310834
for (int scenario=1; scenario < 4; scenario++)
1083410835
{
@@ -10846,13 +10847,13 @@ int runDelayGCP_SAVEREQ(NDBT_Context* ctx, NDBT_Step* step)
1084610847
false, /* abort */
1084710848
false /* force */) == 0);
1084810849
g_err << "Waiting until node " << victim << " stops" << endl;
10849-
restarter.waitNodesNoStart(&victim, 1);
10850+
restarter.waitNodesNoStart(&victim, 1, timeout);
1085010851
break;
1085110852
case 3:
1085210853
g_err << "Scenario 3 : Start node, block GCP, check no LCP stall" << endl;
1085310854
g_err << "Starting node " << victim << endl;
1085410855
CHECK2(restarter.startNodes(&victim, 1) == 0);
10855-
CHECK2(restarter.waitClusterStarted() == 0);
10856+
CHECK2(restarter.waitClusterStarted(timeout) == 0);
1085610857
break;
1085710858
default:
1085810859
abort();
@@ -10861,9 +10862,9 @@ int runDelayGCP_SAVEREQ(NDBT_Context* ctx, NDBT_Step* step)
1086110862
g_err << "Inserting err delaying GCP_SAVEREQ" << endl;
1086210863
CHECK2(restarter.insertErrorInAllNodes(7237) == 0);
1086310864

10864-
g_err << "Sleeping for 3 * MaxLcpLag = " << 3*lcp_max_lag << " seconds."
10865+
g_err << "Sleeping for 3 * MaxLcpLag = " << 3 * lcp_max_lag << " seconds."
1086510866
<< endl;
10866-
NdbSleep_SecSleep(3*lcp_max_lag);
10867+
NdbSleep_SecSleep(3 * lcp_max_lag);
1086710868

1086810869
// Remove the error insertion and let the GCP and LCP to finish
1086910870
CHECK2(restarter.insertErrorInAllNodes(0) == 0);

storage/ndb/test/run-test/daily-devel--07-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ max-time: 60
290290

291291
cmd: testNodeRestart
292292
args: -n CheckGcpStopTimerDistributed T1
293-
max-time: 520
293+
max-time: 2000
294294

295295
cmd: testNdbApi
296296
args: -n TestSlowConnectEnable T1

0 commit comments

Comments
 (0)