gaurav-narula commented on code in PR #23778:
URL: https://github.com/apache/kafka/pull/23778#discussion_r4249941615


##########
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java:
##########
@@ -1466,7 +1466,15 @@ private boolean hasValidClusterId(String 
requestClusterId) {
         if (requestClusterId == null) {
             return true;
         }
-        return clusterId.equals(requestClusterId);
+        if (!clusterId.equals(requestClusterId)) {
+            logger.warn(
+                "Received request with cluster id \"{}\", which does not match 
the local cluster id \"{}\"",

Review Comment:
   I think it would be useful to also log node-id from which the request 
originated



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to