TaiJuWu commented on code in PR #21491:
URL: https://github.com/apache/kafka/pull/21491#discussion_r2825135410


##########
core/src/main/java/kafka/server/share/SharePartition.java:
##########
@@ -1951,7 +1947,7 @@ private int acquireSubsetBatchRecords(
                 // records in a single response batch. Condition below checks 
if the current record has reached
                 // the delivery limit and already have some records to return 
in response then skip processing
                 // the current record, which shall be delivered alone in next 
fetch.
-                if (maxDeliveryCount > 2 && recordDeliveryCount == 
maxDeliveryCount - 1 && acquiredCount > 0) {
+                if (maxDeliveryCount() > 2 && recordDeliveryCount == 
maxDeliveryCount() - 1 && acquiredCount > 0) {

Review Comment:
   Got it, thanks for your review.



-- 
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]

Reply via email to