helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kisho...@apache.org
Subject helix git commit: [HELIX-577] Adding additional sleep for Test cases to pass
Date Mon, 16 Mar 2015 03:54:50 GMT
Repository: helix
Updated Branches:
  refs/heads/helix-0.6.x 8f31d651b -> ad72a7048


[HELIX-577] Adding additional sleep for Test cases to pass


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

Branch: refs/heads/helix-0.6.x
Commit: ad72a7048fe34662501a167ee95c2e7c0dac3bd1
Parents: 8f31d65
Author: kishoreg <kishoreg@apache.org>
Authored: Sun Mar 15 20:47:13 2015 -0700
Committer: kishoreg <kishoreg@apache.org>
Committed: Sun Mar 15 20:52:19 2015 -0700

----------------------------------------------------------------------
 .../apache/helix/integration/TestBucketizedResource.java    | 9 ++++++++-
 .../org/apache/helix/integration/TestEnableCompression.java | 2 +-
 hpost-review.sh                                             | 2 +-
 3 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/ad72a704/helix-core/src/test/java/org/apache/helix/integration/TestBucketizedResource.java
----------------------------------------------------------------------
diff --git a/helix-core/src/test/java/org/apache/helix/integration/TestBucketizedResource.java
b/helix-core/src/test/java/org/apache/helix/integration/TestBucketizedResource.java
index a29ca0d..c1b8ba5 100644
--- a/helix-core/src/test/java/org/apache/helix/integration/TestBucketizedResource.java
+++ b/helix-core/src/test/java/org/apache/helix/integration/TestBucketizedResource.java
@@ -267,7 +267,14 @@ public class TestBucketizedResource extends ZkIntegrationTestBase {
             clusterName));
     Assert.assertTrue(result);
     // wait callback to finish
-    Thread.sleep(100);
+    int waitTime =0;
+    do {
+      Thread.sleep(1000);
+      waitTime += 1000;
+      if (waitTime > 30000) {
+        break;
+      }
+    } while (listener.cbCnt == 0);
     listener.cbCnt = 0;
 
     // add a new db

http://git-wip-us.apache.org/repos/asf/helix/blob/ad72a704/helix-core/src/test/java/org/apache/helix/integration/TestEnableCompression.java
----------------------------------------------------------------------
diff --git a/helix-core/src/test/java/org/apache/helix/integration/TestEnableCompression.java
b/helix-core/src/test/java/org/apache/helix/integration/TestEnableCompression.java
index 45dbd58..643973a 100644
--- a/helix-core/src/test/java/org/apache/helix/integration/TestEnableCompression.java
+++ b/helix-core/src/test/java/org/apache/helix/integration/TestEnableCompression.java
@@ -105,7 +105,7 @@ public class TestEnableCompression extends ZkIntegrationTestBase {
 
     boolean result =
         ClusterStateVerifier.verifyByZkCallback(new BestPossAndExtViewZkVerifier(ZK_ADDR,
-            clusterName));
+            clusterName), 120000);
     Assert.assertTrue(result);
 
     List<String> compressedPaths = new ArrayList<String>();

http://git-wip-us.apache.org/repos/asf/helix/blob/ad72a704/hpost-review.sh
----------------------------------------------------------------------
diff --git a/hpost-review.sh b/hpost-review.sh
index e869f25..99ef81c 100755
--- a/hpost-review.sh
+++ b/hpost-review.sh
@@ -54,5 +54,5 @@ if [[ $JIRA_STATUS -eq 404 ]]; then
     usage
 fi;
 
-rbt post --server="https://reviews.apache.org" --target-groups=helix --summary="$(git log
--pretty=format:%s $REVLIST)" --description="$(git whatchanged $REVLIST)" --diff-filename=<(git
diff --no-prefix $REVLIST) --repository-url=git://git.apache.org/helix.git -o --bugs-closed=$BUG_NAME
$*
+rbt post --server="https://reviews.apache.org" --target-groups=helix --summary="$(git log
--pretty=format:%s $REVLIST)" --description="$(git whatchanged $REVLIST)" --diff-filename=<(git
diff $REVLIST) --repository-url=git://git.apache.org/helix.git -o --bugs-closed=$BUG_NAME
$*
 


Mime
View raw message