private void mirrorMetaLocation(RegionInfo regionInfo, ServerName serverName, State state)
    throws IOException {
    try {
      MetaTableLocator.setMetaLocation(master.getZooKeeper(), serverName, regionInfo.getReplicaId(),
        state);
    } catch (KeeperException e) {
      throw new IOException(e);
    }
  }
Queries META table for the passed region encoded name, delegating action upon results to the
{@code RegionStateVisitor} passed as second parameter.
@param regionEncodedName encoded name for the Region we want to query META for.
@param visitor           The {@code RegionStateVisitor} instance to react over the query
                         results.
@throws IOException If some error occurs while querying META or parsing results.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateStore.java