gharris1727 commented on a change in pull request #10014: URL: https://github.com/apache/kafka/pull/10014#discussion_r568830939
########## File path: connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java ########## @@ -381,7 +381,7 @@ public void tick() { log.debug("Scheduled rebalance at: {} (now: {} nextRequestTimeoutMs: {}) ", scheduledRebalance, now, nextRequestTimeoutMs); } - if (internalRequestValidationEnabled() && keyExpiration < Long.MAX_VALUE) { + if (isLeader() && internalRequestValidationEnabled() && keyExpiration < Long.MAX_VALUE) { Review comment: Got it, duh. should have checked the other condition before leaving an uninformed comment 🙃 ---------------------------------------------------------------- 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