Skip to content

Commit d167d93

Browse files
author
Maitrayi Sabaratnam
committed
Merge branch 'mysql-8.0' into mysql-trunk
Change-Id: I5a2edc941f4246f41cfd1b72c38db26c402146e6
2 parents 3901c23 + 12434fa commit d167d93

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
@@ -10827,10 +10827,11 @@ int runDelayGCP_SAVEREQ(NDBT_Context* ctx, NDBT_Step* step)
1082710827
}
1082810828

1082910829
int result = NDBT_OK;
10830+
unsigned int timeout = 240; // To suite many node/replica tests
1083010831
const int victim = restarter.getNode(NdbRestarter::NS_RANDOM);
1083110832
const Uint32 lcp_max_lag = ctx->getProperty("MaxLcpLag",
1083210833
Uint32(60));
10833-
const Uint32 clear_error_insert_seconds = 20;
10834+
const Uint32 clear_error_insert_seconds = 60;
1083410835

1083510836
for (int scenario=1; scenario < 4; scenario++)
1083610837
{
@@ -10848,13 +10849,13 @@ int runDelayGCP_SAVEREQ(NDBT_Context* ctx, NDBT_Step* step)
1084810849
false, /* abort */
1084910850
false /* force */) == 0);
1085010851
g_err << "Waiting until node " << victim << " stops" << endl;
10851-
restarter.waitNodesNoStart(&victim, 1);
10852+
restarter.waitNodesNoStart(&victim, 1, timeout);
1085210853
break;
1085310854
case 3:
1085410855
g_err << "Scenario 3 : Start node, block GCP, check no LCP stall" << endl;
1085510856
g_err << "Starting node " << victim << endl;
1085610857
CHECK2(restarter.startNodes(&victim, 1) == 0);
10857-
CHECK2(restarter.waitClusterStarted() == 0);
10858+
CHECK2(restarter.waitClusterStarted(timeout) == 0);
1085810859
break;
1085910860
default:
1086010861
abort();
@@ -10863,9 +10864,9 @@ int runDelayGCP_SAVEREQ(NDBT_Context* ctx, NDBT_Step* step)
1086310864
g_err << "Inserting err delaying GCP_SAVEREQ" << endl;
1086410865
CHECK2(restarter.insertErrorInAllNodes(7237) == 0);
1086510866

10866-
g_err << "Sleeping for 3 * MaxLcpLag = " << 3*lcp_max_lag << " seconds."
10867+
g_err << "Sleeping for 3 * MaxLcpLag = " << 3 * lcp_max_lag << " seconds."
1086710868
<< endl;
10868-
NdbSleep_SecSleep(3*lcp_max_lag);
10869+
NdbSleep_SecSleep(3 * lcp_max_lag);
1086910870

1087010871
// Remove the error insertion and let the GCP and LCP to finish
1087110872
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
@@ -294,7 +294,7 @@ max-time: 600
294294

295295
cmd: testNodeRestart
296296
args: -n CheckGcpStopTimerDistributed T1
297-
max-time: 520
297+
max-time: 2000
298298

299299
cmd: testNdbApi
300300
args: -n TestSlowConnectEnable T1

0 commit comments

Comments
 (0)