@Override
  public int getRefCount(int record) throws IOException {
    waitForPendingWriteForRecord(record);
    return withReadLock(() -> ((RefCountingRecordsTableLF)recordsTable).getRefCount(record));
  }
@Override
  public int getRefCount(int record)