You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by ka...@apache.org on 2013/10/01 02:19:24 UTC

git commit: [HELIX-243] Fix one failing test

Updated Branches:
  refs/heads/helix-logical-model 416ae8fbc -> ce183c61e


[HELIX-243] Fix one failing test


Project: http://git-wip-us.apache.org/repos/asf/incubator-helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-helix/commit/ce183c61
Tree: http://git-wip-us.apache.org/repos/asf/incubator-helix/tree/ce183c61
Diff: http://git-wip-us.apache.org/repos/asf/incubator-helix/diff/ce183c61

Branch: refs/heads/helix-logical-model
Commit: ce183c61e2ec89d230009181d311ed1c4f1ab8ff
Parents: 416ae8f
Author: Kanak Biscuitwala <ka...@apache.org>
Authored: Mon Sep 30 17:18:54 2013 -0700
Committer: Kanak Biscuitwala <ka...@apache.org>
Committed: Mon Sep 30 17:18:54 2013 -0700

----------------------------------------------------------------------
 .../java/org/apache/helix/integration/TestSchedulerMessage.java    | 1 +
 .../src/main/java/org/apache/helix/examples/NewModelExample.java   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/ce183c61/helix-core/src/test/java/org/apache/helix/integration/TestSchedulerMessage.java
----------------------------------------------------------------------
diff --git a/helix-core/src/test/java/org/apache/helix/integration/TestSchedulerMessage.java b/helix-core/src/test/java/org/apache/helix/integration/TestSchedulerMessage.java
index 292eca3..8af9f14 100644
--- a/helix-core/src/test/java/org/apache/helix/integration/TestSchedulerMessage.java
+++ b/helix-core/src/test/java/org/apache/helix/integration/TestSchedulerMessage.java
@@ -526,6 +526,7 @@ public class TestSchedulerMessage extends ZkStandAloneCMTestBaseWithPropertyServ
           callback._message.getResultMap().get(
               DefaultSchedulerMessageHandlerFactory.SCHEDULER_MSG_ID);
 
+      Thread.sleep(1000);
       HelixDataAccessor helixDataAccessor = manager.getHelixDataAccessor();
       Builder keyBuilder = helixDataAccessor.keyBuilder();
 

http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/ce183c61/helix-examples/src/main/java/org/apache/helix/examples/NewModelExample.java
----------------------------------------------------------------------
diff --git a/helix-examples/src/main/java/org/apache/helix/examples/NewModelExample.java b/helix-examples/src/main/java/org/apache/helix/examples/NewModelExample.java
index 2de8dda..75e7a50 100644
--- a/helix-examples/src/main/java/org/apache/helix/examples/NewModelExample.java
+++ b/helix-examples/src/main/java/org/apache/helix/examples/NewModelExample.java
@@ -171,7 +171,7 @@ public class NewModelExample {
     Partition partition2 = new Partition(PartitionId.from(resourceId, "2"));
 
     // specify the rebalancer configuration
-    // this resource will be rebalanced in FULL_AUTO mode, so use the FullAutoRebalancerConfig
+    // this resource will be rebalanced in FULL_AUTO mode, so use the FullAutoRebalancerContext
     // builder
     FullAutoRebalancerContext.Builder rebalanceContextBuilder =
         new FullAutoRebalancerContext.Builder(resourceId).replicaCount(1).addPartition(partition1)