This is an automated email from the ASF dual-hosted git repository. jxue pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/helix.git
commit ae586ac6f511ebed7bb01e0bec61f526b7d4b178 Author: narendly <[email protected]> AuthorDate: Tue Feb 26 17:26:00 2019 -0800 [HELIX-809] TEST: Fix unstable TestClusterInMaintenanceModeWhenReachingMaxPartition The pause for this was too short so the test was occasionally failing. This RB fixes this. --- .../TestClusterInMaintenanceModeWhenReachingMaxPartition.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-core/src/test/java/org/apache/helix/integration/rebalancer/TestClusterInMaintenanceModeWhenReachingMaxPartition.java b/helix-core/src/test/java/org/apache/helix/integration/rebalancer/TestClusterInMaintenanceModeWhenReachingMaxPartition.java index 9257ae3..7cd0235 100644 --- a/helix-core/src/test/java/org/apache/helix/integration/rebalancer/TestClusterInMaintenanceModeWhenReachingMaxPartition.java +++ b/helix-core/src/test/java/org/apache/helix/integration/rebalancer/TestClusterInMaintenanceModeWhenReachingMaxPartition.java @@ -102,7 +102,7 @@ public class TestClusterInMaintenanceModeWhenReachingMaxPartition extends ZkTest _replica, -1); _testDBs.add(db); } - Thread.sleep(100); + Thread.sleep(100L); Assert.assertTrue(_clusterVerifier.verifyByPolling()); MaintenanceSignal maintenanceSignal = _dataAccessor.getProperty(_dataAccessor.keyBuilder().maintenance()); @@ -112,7 +112,7 @@ public class TestClusterInMaintenanceModeWhenReachingMaxPartition extends ZkTest _participants.get(i).syncStop(); } - Thread.sleep(500); + Thread.sleep(1000L); maintenanceSignal = _dataAccessor.getProperty(_dataAccessor.keyBuilder().maintenance()); Assert.assertNotNull(maintenanceSignal); Assert.assertNotNull(maintenanceSignal.getReason());
