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

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