/**
  * Update the assignment plan into hbase:meta
  *
  * @param plan the assignments plan to be updated into hbase:meta
  * @throws IOException if cannot update assignment plan in hbase:meta
  */
 public void updateAssignmentPlanToMeta(FavoredNodesPlan plan) throws IOException {
   try {
     LOG.info("Start to update the hbase:meta with the new assignment plan");
     Map<HRegionInfo, List<ServerName>> assignmentMap = plan.getAssignmentMap();
     FavoredNodeAssignmentHelper.updateMetaWithFavoredNodesInfo(assignmentMap, conf);
     LOG.info("Updated the hbase:meta with the new assignment plan");
   } catch (Exception e) {
     LOG.error(
         "Failed to update hbase:meta with the new assignment" + "plan because " + e.getMessage());
   }
 }