muralibasani commented on code in PR #16615: URL: https://github.com/apache/kafka/pull/16615#discussion_r1682442786
########## core/src/main/scala/kafka/server/ReplicaManager.scala: ########## @@ -2762,7 +2763,17 @@ class ReplicaManager(val config: KafkaConfig, replicaFetcherManager.shutdownIdleFetcherThreads() replicaAlterLogDirsManager.shutdownIdleFetcherThreads() - remoteLogManager.foreach(rlm => rlm.onLeadershipChange(leaderChangedPartitions.asJava, followerChangedPartitions.asJava, localChanges.topicIds())) + var isTieredStateEnabledForTopic = false + + // get topic config + if (!localChanges.leaders.isEmpty) { + val logConfig:Option[LogConfig] = getLogConfig(localChanges.leaders.asScala.head._1) Review Comment: get topicConfig instead of logConfig ? -- 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