andymg3 commented on code in PR #12499: URL: https://github.com/apache/kafka/pull/12499#discussion_r941967874
########## core/src/main/scala/kafka/server/BrokerToControllerChannelManager.scala: ########## @@ -364,15 +423,15 @@ class BrokerToControllerRequestThread( } override def doWork(): Unit = { - if (activeControllerAddress().isDefined) { + if (activeControllerOpt().isDefined) { super.pollOnce(Long.MaxValue) } else { debug("Controller isn't cached, looking for local metadata changes") controllerNodeProvider.get() match { - case Some(controllerNode) => - info(s"Recorded new controller, from now on will use broker $controllerNode") - updateControllerAddress(controllerNode) - metadataUpdater.setNodes(Seq(controllerNode).asJava) + case Some(controllerNodeAndEpoch) => Review Comment: Is this where/how eventually the `LeaderAndIsr` from the new controller gets applied? -- 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