HBASE-16552 MiniHBaseCluster#getServerWith() does not ignore stopped RSs
This commit is contained in:
parent
84ad592748
commit
fa7731de6e
|
@ -696,10 +696,12 @@ public class MiniHBaseCluster extends HBaseCluster {
|
|||
int count = 0;
|
||||
for (JVMClusterUtil.RegionServerThread rst: getRegionServerThreads()) {
|
||||
HRegionServer hrs = rst.getRegionServer();
|
||||
Region region = hrs.getOnlineRegion(regionName);
|
||||
if (region != null) {
|
||||
index = count;
|
||||
break;
|
||||
if (!hrs.isStopped()) {
|
||||
Region region = hrs.getOnlineRegion(regionName);
|
||||
if (region != null) {
|
||||
index = count;
|
||||
break;
|
||||
}
|
||||
}
|
||||
count++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue