kirktrue commented on code in PR #19980:
URL: https://github.com/apache/kafka/pull/19980#discussion_r2320189450
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractFetch.java:
##########
@@ -222,6 +222,10 @@ protected void handleFetchSuccess(final Node fetchTarget,
fetchBuffer.add(completedFetch);
}
+ // "Wake" the fetch buffer on any response, even if it's empty, to
allow the consumer to not block
+ // indefinitely waiting on the fetch buffer to get data.
+ fetchBuffer.wakeup();
Review Comment:
Yes, I should remove it. It adds unnecessary synchronization overhead.
--
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]