hachikuji commented on a change in pull request #9967: URL: https://github.com/apache/kafka/pull/9967#discussion_r565032694
########## File path: core/src/main/scala/kafka/server/KafkaConfig.scala ########## @@ -1495,6 +1517,13 @@ class KafkaConfig(val props: java.util.Map[_, _], doLog: Boolean, dynamicConfigO distinctRoles } + def metadataLogDir: String = { + Option(getString(KafkaConfig.MetadataLogDirProp)) match { + case Some(dir) => dir + case None => logDirs.head Review comment: What I am thinking for the moment is the following: 1. Assume a deterministic mapping to the metadata dir. 2. Raise an exception on startup if we find the `@metadata` log dir in another directory. As a future improvement, we might relax this in case the metadata log dir is offline. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org