public FetchDataInfo read(long startOffset, int maxSize) throws IOException {
        return read(startOffset, maxSize, size());
    }
Equivalent to {@code read(startOffset, maxSize, size())}.

See {@link #read(long, int, Optional, boolean)} for details.
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegment.java