gharris1727 commented on a change in pull request #8618: URL: https://github.com/apache/kafka/pull/8618#discussion_r420950647
########## File path: connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java ########## @@ -193,13 +194,11 @@ public void transitionTo(TargetState state) { @Override public void execute() { initializeAndStart(); - try { + // Make sure any uncommitted data has been committed and the task has + // a chance to clean up its state + try (QuietClosable ignored = this::closePartitions) { Review comment: I used `ignored` as a way to trigger the IDE to avoid highlighting the unused variable. I can change this to suppressible since the behavior is better described (suppressible "if another exception occurs first"). ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org