C0urante commented on code in PR #13178: URL: https://github.com/apache/kafka/pull/13178#discussion_r1107275404
########## connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorCheckpointTask.java: ########## @@ -134,9 +138,9 @@ public String version() { @Override public List<SourceRecord> poll() throws InterruptedException { try { - long deadline = System.currentTimeMillis() + interval.toMillis(); - while (!stopping && System.currentTimeMillis() < deadline) { - offsetSyncStore.update(pollTimeout); + if (stopping.await(pollTimeout.toMillis(), TimeUnit.MILLISECONDS)) { Review Comment: Ah yeah, totally right, the condition was correct. Sorry about that! -- 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