hbase-9002: TestDistributedLogSplitting.testRecoveredEdits fails

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1506267 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jeffreyz 2013-07-23 20:43:13 +00:00
parent 4f132dc361
commit 45472c51bb
1 changed files with 8 additions and 1 deletions

View File

@ -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()));