private boolean searchMeta(HMaster master, ServerName sn) throws IOException {
    List<Pair<RegionInfo, ServerName>> ps =
      MetaTableAccessor.getTableRegionsAndLocations(master.getConnection(), null);
    for (Pair<RegionInfo, ServerName> p : ps) {
      if (p.getSecond().equals(sn)) {
        return true;
      }
    }
    return false;
  }
Returns True if we find reference to <code>sn</code> in meta table.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestHBCKSCP.java