hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1181918 - /hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java
Date Tue, 11 Oct 2011 17:42:00 GMT
Author: nspiegelberg
Date: Tue Oct 11 17:41:59 2011
New Revision: 1181918

URL: http://svn.apache.org/viewvc?rev=1181918&view=rev
Log:
RegionSplitter : Allow NSFRE during logical split verification

Modified:
    hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java

Modified: hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java?rev=1181918&r1=1181917&r2=1181918&view=diff
==============================================================================
--- hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java
(original)
+++ hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java
Tue Oct 11 17:41:59 2011
@@ -392,9 +392,16 @@ public class RegionSplitter {
       byte[] start = region.getFirst();
       byte[] split = region.getSecond();
 
-      // check if one of the daughter regions has come online
-      HRegionInfo dri = table.getRegionLocation(split).getRegionInfo();
-      if (!Bytes.equals(dri.getStartKey(), split) || dri.isOffline()) {
+      try {
+        // check if one of the daughter regions has come online
+        HRegionInfo dri = table.getRegionLocation(split).getRegionInfo();
+        if (!Bytes.equals(dri.getStartKey(), split) || dri.isOffline()) {
+          logicalSplitting.add(region);
+          continue;
+        }
+      } catch (NoServerForRegionException nsfre) {
+        // NSFRE will occur if the old META entry has no server assigned
+        LOG.info(nsfre);
         logicalSplitting.add(region);
         continue;
       }



Mime
View raw message