public void close() throws IOException {
        trimToValidSize();
        closeHandler();
    }
The number of bytes actually used by this index
storage/src/main/java/org/apache/kafka/storage/internals/log/AbstractIndex.java