RivenSun2 commented on code in PR #12349: URL: https://github.com/apache/kafka/pull/12349#discussion_r909364269
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java: ########## @@ -745,6 +745,10 @@ protected boolean onJoinPrepare(int generation, String memberId) { boolean onJoinPrepareAsyncCommitCompleted = false; // async commit offsets prior to rebalance if auto-commit enabled RequestFuture<Void> future = maybeAutoCommitOffsetsAsync(); + // wait for commit offset response if future exist + if (future != null) { + client.poll(future, time.timer(rebalanceConfig.rebalanceTimeoutMs)); + } Review Comment: LGTM! thanks. -- 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