_setupTool.addResourceToCluster(CLUSTER_NAME, db2, 60, "OnlineOffline", IdealStateModeProperty.AUTO_REBALANCE+"");
_setupTool.rebalanceStorageCluster(CLUSTER_NAME, db2, 1);
String instance2 = "localhost_279699";
StartCMResult result = TestHelper.startDummyProcess(ZK_ADDR, CLUSTER_NAME, instance2);
Thread.sleep(500);
Assert.assertFalse(result._thread.isAlive());
Assert.assertTrue(null == manager.getHelixDataAccessor().getProperty(accessor.keyBuilder().liveInstance(instance2)));
ConfigScope scope =
new ConfigScopeBuilder().forCluster(CLUSTER_NAME)
.build();
manager.getConfigAccessor().set(scope, ZKHelixManager.ALLOW_PARTICIPANT_AUTO_JOIN, "true");
result =
TestHelper.startDummyProcess(ZK_ADDR, CLUSTER_NAME, instance2);
StartCMResult result2 =
TestHelper.startDummyProcess(ZK_ADDR, CLUSTER_NAME, instance2);
Thread.sleep(500);
Assert.assertTrue(result._thread.isAlive() || result2._thread.isAlive());
for(int i = 0; i< 20; i++)