OmniaGM commented on code in PR #15335: URL: https://github.com/apache/kafka/pull/15335#discussion_r1517754815
########## core/src/main/scala/kafka/log/LogManager.scala: ########## @@ -354,6 +355,14 @@ class LogManager(logDirs: Seq[File], } else if (logDir.getName.endsWith(UnifiedLog.StrayDirSuffix)) { addStrayLog(topicPartition, log) warn(s"Loaded stray log: $logDir") + } else if (shouldBeStrayKraftLog(log)) { + // Mark the partition directories we're not supposed to have as stray. We have to do this + // during log load because topics may have been recreated with the same name while a disk + // was offline. + // See KAFKA-16234, KAFKA-16157 and KAFKA-14616 for details. Review Comment: Updated this comment -- 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