Skip to content

Commit c890552

Browse files
author
Maitrayi Sabaratnam
committed
Merge branch 'mysql-5.6-cluster-7.4' into mysql-5.7-cluster-7.5
2 parents cc11b9d + d0396b9 commit c890552

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

storage/ndb/test/ndbapi/testSystemRestart.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -3270,10 +3270,15 @@ runLoad(NDBT_Context* ctx, NDBT_Step* step)
32703270
int retries = 0;
32713271
while (!ctx->isTestStopped() && myDict->createTable(*copy)!= 0)
32723272
{
3273-
// 4009 Cluster Failure is acceptable since SR is in progress
3274-
CHK(myDict->getNdbError().code == 4009, myDict->getNdbError().message);
3273+
/* '4009 - Cluster Failure' is acceptable since SR is in progress.
3274+
* '711 - System busy with node restart, schema operations not allowed'
3275+
* is acceptable since the stale node performs an NR during SR.
3276+
*/
3277+
CHK((myDict->getNdbError().code == 4009 ||
3278+
myDict->getNdbError().code == 711),
3279+
myDict->getNdbError().message);
32753280
retries++;
3276-
CHK(retries < 60, "Creating table not finished within timeout"); // 1 min
3281+
CHK(retries < 180, "Creating table not finished within timeout"); // 3 min
32773282
NdbSleep_MilliSleep(1000);
32783283
}
32793284

0 commit comments

Comments
 (0)