private void validateMobFile(Path path) throws IOException {
    HStoreFile storeFile = null;
    try {
      StoreFileTracker sft = StoreFileTrackerFactory.create(conf, false, getStoreContext());
      storeFile = new HStoreFile(getFileSystem(), path, conf, getCacheConfig(), BloomType.NONE,
        isPrimaryReplicaStore(), sft);
      storeFile.initReader();
    } catch (IOException e) {
      LOG.error("Fail to open mob file[" + path + "], keep it in temp directory.", e);
      throw e;
    } finally {
      if (storeFile != null) {
        storeFile.closeStoreFile(false);
      }
    }
  }
Validates a mob file by opening and closing it.
@param path the path to the mob file
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HMobStore.java