cmccabe commented on a change in pull request #10931: URL: https://github.com/apache/kafka/pull/10931#discussion_r663430447
########## File path: core/src/main/scala/kafka/server/ReplicaManager.scala ########## @@ -2011,7 +2011,16 @@ class ReplicaManager(val config: KafkaConfig, "directory.") None - case HostedPartition.Online(partition) => Some(partition, false) + case HostedPartition.Online(partition) => { + if (partition.topicId.isDefined && !partition.topicId.equals(topicId)) { Review comment: good catch -- 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