You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/12/20 20:22:32 UTC

[GitHub] [kafka] akhileshchg commented on a diff in pull request #13027: MINOR Send ZK broker epoch in registration

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


##########
core/src/main/scala/kafka/server/KafkaServer.scala:
##########
@@ -359,6 +354,11 @@ class KafkaServer(
         val brokerInfo = createBrokerInfo
         val brokerEpoch = zkClient.registerBroker(brokerInfo)
 
+        lifecycleManager = new BrokerLifecycleManager(config,
+          time,
+          threadNamePrefix,
+          zkBrokerEpoch = Some(brokerEpoch))

Review Comment:
   Won't this value change every while the broker is alive? I mean won't the broker be able to re-register/establish new session with Zookeeper after losing it?



-- 
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-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org