public static IMetaStoreClient getNonCachedHiveMetastoreClient(HiveConf hiveConf) throws MetaException {
    return RetryingMetaStoreClient.getProxy(hiveConf, true);
  }
A thread safe time expired cache for HiveMetaStoreClient
hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HiveClientCache.java