vincent81jiang commented on code in PR #12516: URL: https://github.com/apache/kafka/pull/12516#discussion_r964150701
########## core/src/main/scala/kafka/log/LogSegment.scala: ########## @@ -176,10 +179,28 @@ class LogSegment private[log] (val log: FileRecords, throw new LogSegmentOffsetOverflowException(this, offset) } + /** + * Validate that offsets of records are monotonically increasing and are in [offsetLowerBound, offsetUpperBound] range. Review Comment: Right. Will fix the comment. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org