akhileshchg commented on code in PR #12961:
URL: https://github.com/apache/kafka/pull/12961#discussion_r1048902572


##########
core/src/main/scala/kafka/server/metadata/ZkMetadataCache.scala:
##########
@@ -355,6 +375,13 @@ class ZkMetadataCache(brokerId: Int, metadataVersion: 
MetadataVersion, brokerFea
         case id if id < 0 => None
         case id => Some(id)
       }
+      val kraftControllerIdOpt = updateMetadataRequest.kraftControllerId() 
match {
+        case id if id < 0 => None
+        case id => Some(id)
+      }
+      if (controllerIdOpt.nonEmpty && kraftControllerIdOpt.nonEmpty) {

Review Comment:
   Removed this logic in favor of new change to the RPC message.



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