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:
parent
4f132dc361
commit
45472c51bb
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue