public int getStoreRefCount() {
    return this.storeEngine.getStoreFileManager().getStoreFiles().stream()
      .filter(sf -> sf.getReader() != null).filter(HStoreFile::isHFile)
      .mapToInt(HStoreFile::getRefCount).sum();
  }
Computes the length of a store file without succumbing to any errors along the way. If an error
is encountered, the implementation returns {@code 0} instead of the actual size.
@param file The file to compute the size of.
@return The size in bytes of the provided {@code file}.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java