public static Configuration getMsckConf(Configuration conf) {
    // the only reason we are using new conf here is to override EXPRESSION_PROXY_CLASS
    Configuration metastoreConf = MetastoreConf.newMetastoreConf(new Configuration(conf));
    metastoreConf.set(MetastoreConf.ConfVars.EXPRESSION_PROXY_CLASS.getVarname(),
            getProxyClass(metastoreConf));
    return metastoreConf;
  }
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