apoorvmittal10 commented on code in PR #20246:
URL: https://github.com/apache/kafka/pull/20246#discussion_r2490813505
##########
server/src/main/java/org/apache/kafka/server/share/fetch/InFlightBatch.java:
##########
@@ -188,6 +190,29 @@ public InFlightState startBatchStateTransition(RecordState
newState, DeliveryCou
return inFlightState().startStateTransition(newState, ops,
maxDeliveryCount, newMemberId);
}
+ /**
+ * This method initializes the offset states in two ranges:
+ * [firstOffset to targetOffset]: initialize each offset using the current
batch state and schedule
+ * an acquisition lock timeout task for each offset.
+ * (targetOffset to lastOffset]: initialize each offset to {@link
RecordState#AVAILABLE}
+ * and do not schedule any timer task for these offsets.
+ */
Review Comment:
Add @param for correct javadocs
--
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]