hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-14545 TestMasterFailover often times out
Date Sat, 03 Oct 2015 20:34:22 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.0 a5cd676e7 -> 5277104e0


HBASE-14545 TestMasterFailover often times out


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

Branch: refs/heads/branch-1.0
Commit: 5277104e0815d01a59f957960e55ad65a5cd1b36
Parents: a5cd676
Author: stack <stack@apache.org>
Authored: Sat Oct 3 13:31:43 2015 -0700
Committer: stack <stack@apache.org>
Committed: Sat Oct 3 13:34:12 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java | 4 +++-
 .../main/java/org/apache/hadoop/hbase/master/RegionStates.java   | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5277104e/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java
index 364c257..7934a74 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java
@@ -144,7 +144,9 @@ public class LocalHBaseCluster {
     // clash over default ports.
     conf.set(HConstants.MASTER_PORT, "0");
     conf.set(HConstants.REGIONSERVER_PORT, "0");
-    conf.set(HConstants.REGIONSERVER_INFO_PORT, "0");
+    if (conf.getInt(HConstants.REGIONSERVER_INFO_PORT, 0) != -1) {
+      conf.set(HConstants.REGIONSERVER_INFO_PORT, "0");
+    }
 
     this.masterClass = (Class<? extends HMaster>)
       conf.getClass(HConstants.MASTER_IMPL, masterClass);

http://git-wip-us.apache.org/repos/asf/hbase/blob/5277104e/hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionStates.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionStates.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionStates.java
index 03e6ca6..77dca55 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionStates.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionStates.java
@@ -160,10 +160,10 @@ public class RegionStates {
   }
 
   /**
-   * @return an unmodifiable the region assignment map
+   * @return a copy of the region assignment map
    */
   public synchronized Map<HRegionInfo, ServerName> getRegionAssignments() {
-    return Collections.unmodifiableMap(regionAssignments);
+    return new TreeMap<HRegionInfo, ServerName>(regionAssignments);
   }
 
   /**


Mime
View raw message