rhauch commented on a change in pull request #10014:
URL: https://github.com/apache/kafka/pull/10014#discussion_r597039806



##########
File path: 
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java
##########
@@ -402,7 +402,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:
       Sounds good. Thanks for logging 
[KAFKA-12474](https://issues.apache.org/jira/browse/KAFKA-12474) and 
[KAFKA-12476](https://issues.apache.org/jira/browse/KAFKA-12476).




-- 
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


Reply via email to