public static List<Pair<RegionInfo, ServerName>>
    getTableRegionsAndLocations(Connection connection, TableName tableName) throws IOException {
    return getTableRegionsAndLocations(connection, tableName, true);
  }
Do not use this method to get meta table regions, use methods in MetaTableLocator instead.
@param connection connection we're using
@param tableName  table we're looking for
@return Return list of regioninfos and server.
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java