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


The following commit(s) were added to refs/heads/master by this push:
     new edb9a2c  Fix test fail for TestRebalanceScheduler
edb9a2c is described below

commit edb9a2c7c3d0ce028a17569f6167a8098b1a5959
Author: Junkai Xue <[email protected]>
AuthorDate: Mon Jul 22 15:25:01 2019 -0700

    Fix test fail for TestRebalanceScheduler
---
 .../src/test/java/org/apache/helix/util/TestRebalanceScheduler.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/helix-core/src/test/java/org/apache/helix/util/TestRebalanceScheduler.java 
b/helix-core/src/test/java/org/apache/helix/util/TestRebalanceScheduler.java
index 2c73c5b..87239c4 100644
--- a/helix-core/src/test/java/org/apache/helix/util/TestRebalanceScheduler.java
+++ b/helix-core/src/test/java/org/apache/helix/util/TestRebalanceScheduler.java
@@ -4,6 +4,7 @@ import java.util.Arrays;
 import java.util.Collections;
 import org.apache.commons.math.stat.inference.TestUtils;
 import org.apache.helix.ConfigAccessor;
+import org.apache.helix.HelixDataAccessor;
 import org.apache.helix.HelixManager;
 import org.apache.helix.HelixManagerFactory;
 import org.apache.helix.InstanceType;
@@ -55,8 +56,9 @@ public class TestRebalanceScheduler extends ZkTestBase {
 
     IdealState newIdealState =
         
_gSetupTool.getClusterManagementTool().getResourceIdealState(CLUSTER_NAME, 
resourceName);
+    HelixDataAccessor accessor = _manager.getHelixDataAccessor();
     ResourceConfig newResourceConfig =
-        _configAccessor.getResourceConfig(CLUSTER_NAME, resourceName);
+        
accessor.getProperty(accessor.keyBuilder().resourceConfig(resourceName));
 
     // Starting version should be 0 and finally the version should be same as 
NUM_ATTEMPTS
     
Assert.assertTrue(idealState.getRecord().equals(newIdealState.getRecord()));

Reply via email to