lucasbru commented on code in PR #15000: URL: https://github.com/apache/kafka/pull/15000#discussion_r1455790243
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java: ########## @@ -1902,65 +1912,14 @@ private void maybeThrowFencedInstanceException() { } private void maybeInvokeCommitCallbacks() { - if (callbacks() > 0) { - invoker.executeCallbacks(); + if (offsetCommitCallbackInvoker.executeCallbacks()) { Review Comment: Good point, done. I could actually simplify the code by moving `isFenced` inside the invoker. -- 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