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

View File

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