ShivsundarR commented on code in PR #20283:
URL: https://github.com/apache/kafka/pull/20283#discussion_r2321249906
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java:
##########
@@ -1116,19 +1116,23 @@ private boolean processBackgroundEvents() {
LinkedList<BackgroundEvent> events = new LinkedList<>();
backgroundEventQueue.drainTo(events);
+ if (!events.isEmpty()) {
Review Comment:
Thanks @chia7712 , that makes sense. I have created another PR -
https://github.com/apache/kafka/pull/20474 to fix the same, I have used
`BackgroundEventHandler::drainEvents` to keep it consistent with
`AsyncKafkaConsumer`.
--
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]