|
1 | 1 | /*
|
2 |
| - Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
| 2 | + Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved. |
3 | 3 |
|
4 | 4 | This program is free software; you can redistribute it and/or modify
|
5 | 5 | it under the terms of the GNU General Public License, version 2.0,
|
@@ -6856,6 +6856,15 @@ runBug18044717(NDBT_Context* ctx, NDBT_Step* step)
|
6856 | 6856 | return result;
|
6857 | 6857 | }
|
6858 | 6858 |
|
| 6859 | +int runRestartAllNodes(NDBT_Context* ctx, NDBT_Step* step) |
| 6860 | +{ |
| 6861 | + NdbRestarter restarter; |
| 6862 | + CHECK(restarter.restartAll() == 0, "-"); |
| 6863 | + CHECK(restarter.waitClusterNoStart() == 0, "-"); |
| 6864 | + CHECK(restarter.startAll() == 0, "-"); |
| 6865 | + CHECK(restarter.waitClusterStarted() == 0, "-"); |
| 6866 | + CHK_NDB_READY(GETNDB(step)); |
| 6867 | +} |
6859 | 6868 |
|
6860 | 6869 |
|
6861 | 6870 | static int createEvent(Ndb *pNdb,
|
@@ -8312,6 +8321,7 @@ TESTCASE("Bug18612SR",
|
8312 | 8321 | "Test bug with partitioned clusters"){
|
8313 | 8322 | INITIALIZER(runLoadTable);
|
8314 | 8323 | STEP(runBug18612SR);
|
| 8324 | + FINALIZER(runRestartAllNodes); |
8315 | 8325 | FINALIZER(runClearTable);
|
8316 | 8326 | }
|
8317 | 8327 | TESTCASE("Bug20185",
|
|
0 commit comments