FrankYang0529 commented on code in PR #17244: URL: https://github.com/apache/kafka/pull/17244#discussion_r1773257046
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java: ########## @@ -1471,6 +1487,7 @@ public void unsubscribe() { fetchBuffer.retainAll(Collections.emptySet()); Timer timer = time.timer(defaultApiTimeoutMs); UnsubscribeEvent unsubscribeEvent = new UnsubscribeEvent(calculateDeadlineMs(timer)); + backgroundEventProcessor.setIgnorePreviousBackgroundErrorEvent(timer.currentTimeMs()); Review Comment: Hi @lianetm, thanks for the suggestion. I update `processBackgroundEvents` function to accept a new argument `Predicate<Exception> ignoreErrorEventException`, so we don't need to do 2 phase mechanism in `BackgroundEventProcessor`. -- 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