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-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org