hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1587696 - /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKLeaderManager.java
Date Tue, 15 Apr 2014 19:15:20 GMT
Author: larsh
Date: Tue Apr 15 19:15:20 2014
New Revision: 1587696

URL: http://svn.apache.org/r1587696
Log:
HBASE-10987 Increase timeout in TestZKLeaderManager.testLeaderSelection.

Modified:
    hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKLeaderManager.java

Modified: hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKLeaderManager.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKLeaderManager.java?rev=1587696&r1=1587695&r2=1587696&view=diff
==============================================================================
--- hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKLeaderManager.java
(original)
+++ hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/zookeeper/TestZKLeaderManager.java
Tue Apr 15 19:15:20 2014
@@ -204,8 +204,8 @@ public class TestZKLeaderManager {
   private MockLeader getCurrentLeader() throws Exception {
     MockLeader currentLeader = null;
     outer:
-    // wait up to 2 secs for initial leader
-    for (int i = 0; i < 20; i++) {
+    // wait up to 10 secs for initial leader
+    for (int i = 0; i < 100; i++) {
       for (int j = 0; j < CANDIDATES.length; j++) {
         if (CANDIDATES[j].isMaster()) {
           // should only be one leader



Mime
View raw message