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 2023/01/10 21:19:22 UTC
[GitHub] [kafka] cmccabe commented on a diff in pull request #13103: KAFKA-14304 Use boolean for ZK migrating brokers in RPC/record
cmccabe commented on code in PR #13103:
URL: https://github.com/apache/kafka/pull/13103#discussion_r1066357853
##########
core/src/main/scala/kafka/server/KafkaServer.scala:
##########
@@ -812,7 +811,7 @@ class KafkaServer(
_brokerState = BrokerState.PENDING_CONTROLLED_SHUTDOWN
- if (config.migrationEnabled && lifecycleManager != null) {
+ if (config.migrationEnabled && lifecycleManager != null && metadataCache.getControllerId.exists(_.isInstanceOf[KRaftCachedControllerId])) {
Review Comment:
this is a good fix, can you include it in the change description?
--
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