hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jxi...@apache.org
Subject git commit: HBASE-11740 RegionStates.getRegionAssignments() gets stuck on clone (Virag Kothari)
Date Fri, 15 Aug 2014 17:38:18 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 0ca9a85c4 -> a3f99265c


HBASE-11740 RegionStates.getRegionAssignments() gets stuck on clone (Virag Kothari)


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

Branch: refs/heads/branch-1
Commit: a3f99265c3cfd8af1facf6b00110be910b3039d4
Parents: 0ca9a85
Author: Jimmy Xiang <jxiang@cloudera.com>
Authored: Fri Aug 15 10:36:49 2014 -0700
Committer: Jimmy Xiang <jxiang@cloudera.com>
Committed: Fri Aug 15 10:37:52 2014 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/master/RegionStates.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a3f99265/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 ecb6df7..5d4bc77 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
@@ -20,6 +20,7 @@ package org.apache.hadoop.hbase.master;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -148,9 +149,8 @@ public class RegionStates {
   /**
    * @return an unmodifiable the region assignment map
    */
-  @SuppressWarnings("unchecked")
   public synchronized Map<HRegionInfo, ServerName> getRegionAssignments() {
-    return (Map<HRegionInfo, ServerName>)regionAssignments.clone();
+    return Collections.unmodifiableMap(regionAssignments);
   }
 
   /**


Mime
View raw message