HBASE-24821 simplify the logic of getRegionInfo in TestFlushFromClient to reduce redundancy code
Closes #2200 Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
d2f5a5f27b
commit
c39cad220d
|
@ -194,11 +194,7 @@ public class TestFlushFromClient {
|
|||
}
|
||||
|
||||
private List<HRegion> getRegionInfo() {
|
||||
return TEST_UTIL.getHBaseCluster().getLiveRegionServerThreads().stream()
|
||||
.map(JVMClusterUtil.RegionServerThread::getRegionServer)
|
||||
.flatMap(r -> r.getRegions().stream())
|
||||
.filter(r -> r.getTableDescriptor().getTableName().equals(tableName))
|
||||
.collect(Collectors.toList());
|
||||
return TEST_UTIL.getHBaseCluster().getRegions(tableName);
|
||||
}
|
||||
|
||||
private List<HRegion> getRegionInfo(HRegionServer rs) {
|
||||
|
|
Loading…
Reference in New Issue