keemsisi commented on code in PR #20380:
URL: https://github.com/apache/kafka/pull/20380#discussion_r2342640575
##########
storage/src/main/java/org/apache/kafka/storage/internals/log/AbstractIndex.java:
##########
@@ -303,8 +303,8 @@ public void reset() throws IOException {
}
/**
- * Get offset relative to base offset of this index
- * @throws IndexOffsetOverflowException
+ * Gets the offset relative to the base offset of this index.
+ * @throws IndexOffsetOverflowException if relativeOffset (of type
OptionalInt) is empty
Review Comment:
Hello @chia7712 , I have added detailed java doc. to explain clearly why the
input offset may be considered invalid.
Kindly review again.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]