You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by iv...@apache.org on 2017/10/20 22:19:15 UTC

[bookkeeper] branch master updated: Increase timeouts in TestDisableEnsembleChange

This is an automated email from the ASF dual-hosted git repository.

ivank pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 51a58cb  Increase timeouts in TestDisableEnsembleChange
51a58cb is described below

commit 51a58cbe3ad6ca7833f433aa9b845480ee690e57
Author: Ivan Kelly <iv...@apache.org>
AuthorDate: Sat Oct 21 00:19:08 2017 +0200

    Increase timeouts in TestDisableEnsembleChange
    
    In some narrow cases, if we manage to connect to the bookie, but the bookie
    hasn't fully initialized, an add entry message will be dropped, and the
    client will wait for the timeout to complete. The timeout is 5 seconds
    by default, which was 5x the timeout in the test. This patch increases
    the test timeout to 10s, which should give enough time for the addEntry
    to fail and be retried.
    
    Author: Ivan Kelly <iv...@midokura.com>
    
    Reviewers: Enrico Olivelli <eo...@gmail.com>, Sijie Guo <si...@apache.org>
    
    This closes #646 from ivankelly/ensemble-change-test
---
 .../java/org/apache/bookkeeper/client/TestDisableEnsembleChange.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bookkeeper-server/src/test/java/org/apache/bookkeeper/client/TestDisableEnsembleChange.java b/bookkeeper-server/src/test/java/org/apache/bookkeeper/client/TestDisableEnsembleChange.java
index 2627016..9b26ab1 100644
--- a/bookkeeper-server/src/test/java/org/apache/bookkeeper/client/TestDisableEnsembleChange.java
+++ b/bookkeeper-server/src/test/java/org/apache/bookkeeper/client/TestDisableEnsembleChange.java
@@ -206,7 +206,7 @@ public class TestDisableEnsembleChange extends BookKeeperClusterTestCase {
         bsConfs.add(killedConf);
         bs.add(startBookie(killedConf));
         assertTrue("Add entry operation should complete at this point.",
-                addLatch.await(1000, TimeUnit.MILLISECONDS));
+                addLatch.await(10000, TimeUnit.MILLISECONDS));
         assertEquals(res.get(), BKException.Code.OK);
     }
 
@@ -270,7 +270,7 @@ public class TestDisableEnsembleChange extends BookKeeperClusterTestCase {
         // wakeup the sleep bookie
         wakeupLatch.countDown();
         assertTrue("Add entry operation should complete at this point.",
-                addLatch.await(1000, TimeUnit.MILLISECONDS));
+                addLatch.await(10000, TimeUnit.MILLISECONDS));
         assertEquals(res.get(), BKException.Code.OK);
     }
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@bookkeeper.apache.org" <co...@bookkeeper.apache.org>'].