private boolean isSameServer(RegionInfo region, ServerName serverName) throws IOException {
    ServerName serverForRegion = getServerNameForRegion(region, admin, conn);
    return serverForRegion != null && serverForRegion.equals(serverName);
  }
Returns true if passed region is still on serverName when we look at hbase:meta.
@return true if region is hosted on serverName otherwise false
hbase-server/src/main/java/org/apache/hadoop/hbase/util/MoveWithAck.java