public void init(Configuration conf) throws MetaException {
    if (msc == null) {
      setConf(conf);
      this.msc = new HiveMetaStoreClient(conf);
    }
  }
Msck repairs table metadata specifically related to partition information to be in-sync with directories in table
location.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/Msck.java