m1a2st commented on code in PR #17440: URL: https://github.com/apache/kafka/pull/17440#discussion_r1848386538
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java: ########## @@ -425,6 +427,13 @@ public CompletableFuture<Map<TopicPartition, OffsetAndMetadata>> commitSync(fina CompletableFuture<Map<TopicPartition, OffsetAndMetadata>> result = new CompletableFuture<>(); OffsetCommitRequestState requestState = createOffsetCommitRequest(commitOffsets, deadlineMs); commitSyncWithRetries(requestState, result); + new ArrayList<>(metadataErrors).forEach(metadataError -> metadataError.whenComplete((__, error) -> { + if (error != null) { + result.completeExceptionally(error); + metadataErrors.remove(metadataError); + } + })); + Review Comment: Yes, I think we should deal this fataError at another PR, it is a little bit different with this PR, because this PR should focus on Error Event how to passing to application thread. -- 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