hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffr...@apache.org
Subject svn commit: r1506275 - /hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java
Date Tue, 23 Jul 2013 20:53:17 GMT
Author: jeffreyz
Date: Tue Jul 23 20:53:17 2013
New Revision: 1506275

URL: http://svn.apache.org/r1506275
Log:
hbase-9002: TestDistributedLogSplitting.testRecoveredEdits fails

Modified:
    hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java

Modified: hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java?rev=1506275&r1=1506274&r2=1506275&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java
(original)
+++ hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java
Tue Jul 23 20:53:17 2013
@@ -173,9 +173,16 @@ public class TestDistributedLogSplitting
     List<HRegionInfo> regions = null;
     HRegionServer hrs = null;
     for (int i = 0; i < NUM_RS; i++) {
+      boolean foundRs = false;
       hrs = rsts.get(i).getRegionServer();
       regions = ProtobufUtil.getOnlineRegions(hrs);
-      if (regions.size() != 0) break;
+      for (HRegionInfo region : regions) {
+        if (region.getTableNameAsString().equalsIgnoreCase("table")) {
+          foundRs = true;
+          break;
+        }
+      }
+      if (foundRs) break;
     }
     final Path logDir = new Path(rootdir, HLogUtil.getHLogDirectoryName(hrs
         .getServerName().toString()));



Mime
View raw message