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
b0863c5832
commit
64fe71dba3
|
@ -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