HDDS-1536. testSCMSafeModeRestrictedOp is failing consistently. Contributed by Xiaoyu Yao. (#865)

This commit is contained in:
Xiaoyu Yao 2019-05-28 14:02:36 -07:00 committed by GitHub
parent d8b18e82f0
commit fb0b39f4bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,7 @@ public class TestScmSafeMode {
assertTrue(cluster.getStorageContainerManager().isInSafeMode()); assertTrue(cluster.getStorageContainerManager().isInSafeMode());
cluster.startHddsDatanodes(); cluster.startHddsDatanodes();
cluster.waitForClusterToBeReady(); cluster.waitForClusterToBeReady();
cluster.waitTobeOutOfSafeMode();
assertFalse(cluster.getStorageContainerManager().isInSafeMode()); assertFalse(cluster.getStorageContainerManager().isInSafeMode());
// Test2: Test safe mode when containers are there in system. // Test2: Test safe mode when containers are there in system.
@ -301,6 +302,7 @@ public class TestScmSafeMode {
cluster.startHddsDatanodes(); cluster.startHddsDatanodes();
cluster.waitForClusterToBeReady(); cluster.waitForClusterToBeReady();
cluster.waitTobeOutOfSafeMode();
assertFalse(scm.isInSafeMode()); assertFalse(scm.isInSafeMode());
TestStorageContainerManagerHelper helper = TestStorageContainerManagerHelper helper =