if (this.skipTableStateCheck) {
// Region may be available in enablingTableRegions during master startup only.
if (enablingTableRegions != null && enablingTableRegions.contains(hri)) {
regions.add(hri);
if (sn != null && serverManager.isServerOnline(sn)) {
this.assignmentManager.addPlan(hri.getEncodedName(), new RegionPlan(hri, null, sn));
}
}
} else if (onlineRegions.contains(hri)) {
continue;
} else {
regions.add(hri);
if (sn != null && serverManager.isServerOnline(sn)) {
this.assignmentManager.addPlan(hri.getEncodedName(), new RegionPlan(hri, null, sn));
}
}
}
return regions;
}