kkonstantine commented on a change in pull request #11526: URL: https://github.com/apache/kafka/pull/11526#discussion_r755431755
########## File path: connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java ########## @@ -654,6 +655,7 @@ private void closePartitions(Collection<TopicPartition> topicPartitions, boolean topicPartitions.forEach(currentOffsets::remove); } updatePartitionCount(); + topicPartitions.forEach(lastCommittedOffsets::remove); Review comment: Is `removeAll` a supported operation by the underlying set of the hashmap here? Is it applicable? (same question above for `currentOffsets`) -- 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