lucasbru commented on code in PR #15613: URL: https://github.com/apache/kafka/pull/15613#discussion_r1543063391
########## 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: Close will throw now if our `asyncCommit` gets fenced, because we actually attempt to run the callback. If we don't want that, I don't think we can implement the guarantee that the callback is run in close. -- 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