Skip to content
Permalink
Browse files
auto Exit MM for auto EMM test (#2003)
  • Loading branch information
xyuanlu committed Mar 31, 2022
1 parent e39255c commit 03af78cec03dda07918aab65acf1a9b7200cebc8
Showing 1 changed file with 2 additions and 1 deletion.
@@ -99,6 +99,7 @@ public void beforeClass() throws Exception {
ConfigAccessor configAccessor = new ConfigAccessor(_gZkClient);
ClusterConfig clusterConfig = configAccessor.getClusterConfig(CLUSTER_NAME);
clusterConfig.setMaxOfflineInstancesAllowed(_maxOfflineInstancesAllowed);
clusterConfig.setNumOfflineInstancesForAutoExit(0);
configAccessor.setClusterConfig(CLUSTER_NAME, clusterConfig);

for (int i = 0; i < 3; i++) {
@@ -190,7 +191,7 @@ public void testWithOfflineInstancesLimit() throws Exception {
return ms != null && ms.getReason() != null;
}, TestHelper.WAIT_DURATION);
Assert.assertTrue(result);

// Verify there is rebalance error logged
checkForRebalanceError(true);
}

0 comments on commit 03af78c

Please sign in to comment.