hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject hbase git commit: HBASE-12549 Fix TestAssignmentManagerOnCluster#testAssignRacingWithSSH() flaky test
Date Fri, 21 Nov 2014 00:18:55 GMT
Repository: hbase
Updated Branches:
  refs/heads/master cd08f8b2b -> a16b4e0fd


HBASE-12549 Fix TestAssignmentManagerOnCluster#testAssignRacingWithSSH() flaky test


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

Branch: refs/heads/master
Commit: a16b4e0fd5d582a14b78695b2a1acb1135d8fc53
Parents: cd08f8b
Author: Enis Soztutar <enis@apache.org>
Authored: Thu Nov 20 16:17:06 2014 -0800
Committer: Enis Soztutar <enis@apache.org>
Committed: Thu Nov 20 16:17:06 2014 -0800

----------------------------------------------------------------------
 .../hadoop/hbase/master/TestAssignmentManagerOnCluster.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a16b4e0f/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerOnCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerOnCluster.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerOnCluster.java
index 27c7073..e6d08b9 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerOnCluster.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerOnCluster.java
@@ -260,6 +260,12 @@ public class TestAssignmentManagerOnCluster {
       }
 
       TEST_UTIL.deleteTable(Bytes.toBytes(table));
+
+      // reset the value for other tests
+      TEST_UTIL.getMiniHBaseCluster().getConf().setInt("hbase.assignment.maximum.attempts",
3);
+      ServerName masterServerName = TEST_UTIL.getMiniHBaseCluster().getMaster().getServerName();
+      TEST_UTIL.getMiniHBaseCluster().stopMaster(masterServerName);
+      TEST_UTIL.getMiniHBaseCluster().startMaster();
     }
   }
 


Mime
View raw message