cadonna commented on code in PR #14879: URL: https://github.com/apache/kafka/pull/14879#discussion_r1412156215
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/BackgroundEventHandler.java: ########## @@ -49,4 +49,9 @@ public void add(BackgroundEvent event) { log.trace("Enqueued event: {}", event); backgroundEventQueue.add(event); } + + // Visible for testing + public Queue<BackgroundEvent> backgroundEventQueue() { + return backgroundEventQueue; + } Review Comment: I had to take painkillers to stand the pain when I added that method because I totally agree with you but I did not find another way. I will reconsider. -- 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