use of org.apache.hadoop.hbase.favored.FavoredNodesPlan in project hbase by apache.
the class TestRegionPlacement method verifyMETAUpdated.
/**
* Verify the meta has updated to the latest assignment plan
* @param expectedPlan the region assignment plan
* @throws IOException if an IO problem is encountered
*/
private void verifyMETAUpdated(FavoredNodesPlan expectedPlan) throws IOException {
FavoredNodesPlan planFromMETA = rp.getRegionAssignmentSnapshot().getExistingAssignmentPlan();
assertTrue("The assignment plan is NOT consistent with the expected plan ", planFromMETA.equals(expectedPlan));
}
Aggregations