lianetm commented on code in PR #15613: URL: https://github.com/apache/kafka/pull/15613#discussion_r1554020736
########## clients/src/test/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinatorTest.java: ########## @@ -229,7 +229,11 @@ private GroupRebalanceConfig buildRebalanceConfig(Optional<String> groupInstance @AfterEach public void teardown() { this.metrics.close(); - this.coordinator.close(time.timer(0)); + try { + this.coordinator.close(time.timer(0)); Review Comment: I see, I would say it's fine to throw the error at the coordinator level (and live with code like this). And actually, the need for this catch is not introduced by this PR as I see it. The coordinator close before this PR could throw fenced exception for async commits that were waiting for coord and completed [here](https://github.com/apache/kafka/blob/fd9c7d2932dee055289b403e37a0bbb631c080a9/clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java#L983) getting fenced. -- 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