hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jxi...@apache.org
Subject svn commit: r1502317 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Date Thu, 11 Jul 2013 18:18:58 GMT
Author: jxiang
Date: Thu Jul 11 18:18:57 2013
New Revision: 1502317

URL: http://svn.apache.org/r1502317
Log:
HBASE-8899 Could not open a region on a server where it is being closed - ADDENDUM

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java?rev=1502317&r1=1502316&r2=1502317&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Thu Jul 11 18:18:57 2013
@@ -3419,7 +3419,8 @@ public class HRegionServer implements Cl
             // be true or false. True means the region is opening on this RS; while false
             // means the region is closing. Only return ALREADY_OPENED if not closing (i.e.
             // not in transition any more, or still transition to open.
-            if (!Boolean.FALSE.equals(closing)) {
+            if (!Boolean.FALSE.equals(closing)
+                && getFromOnlineRegions(region.getEncodedName()) != null) {
               LOG.warn("Attempted open of " + region.getEncodedName()
                 + " but already online on this server");
               builder.addOpeningState(RegionOpeningState.ALREADY_OPENED);



Mime
View raw message