In staging and vagrant vms, the logdir is not stored on a mountpoint
This commit will allow avoid manual actions when it's not needed
Related to T2790
Differential D4497
Manage the parent directories of the kafka logdirs Authored by vsellier on Nov 17 2020, 6:20 PM. Tags None Subscribers None
Details
In staging and vagrant vms, the logdir is not stored on a mountpoint Related to T2790
diff origin/production/journal0.internal.staging.swh.network current/journal0.internal.staging.swh.network
*******************************************
+ Exec[create /srv/kafka/logdir] =>
parameters =>
"command": "mkdir -p /srv/kafka/logdir",
"creates": "/srv/kafka/logdir",
"path": [
"/bin",
"/usr/bin",
"/sbin",
"/usr/sbin"
]
*******************************************
*** End octocatalog-diff on journal0.internal.staging.swh.network*octocatalog-diff for kafka1.internal.softwareheritage.org diff origin/production/kafka1.internal.softwareheritage.org current/kafka1.internal.softwareheritage.org
*******************************************
+ Exec[create /srv/kafka/logdir] =>
parameters =>
"command": "mkdir -p /srv/kafka/logdir",
"creates": "/srv/kafka/logdir",
"path": [
"/bin",
"/usr/bin",
"/sbin",
"/usr/sbin"
]
*******************************************
*** End octocatalog-diff on kafka1.internal.softwareheritage.org
Diff Detail
Event TimelineComment Actions I will not land this now, it seems there is another issue with the startup of kafka when the logdir is already existing but empty (i.e. created by puppet). I need to dig further [2020-11-19 10:22:02,563] ERROR Failed to create or validate data directory /srv/kafka/logdir (kafka.server.LogDirFailureChannel)
java.io.IOException: Failed to load /srv/kafka/logdir during broker startup
at kafka.log.LogManager.$anonfun$createAndValidateLogDirs$1(LogManager.scala:150)
at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:553)
at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:551)
at scala.collection.AbstractIterable.foreach(Iterable.scala:920)
at kafka.log.LogManager.createAndValidateLogDirs(LogManager.scala:147)
at kafka.log.LogManager.<init>(LogManager.scala:81)
at kafka.log.LogManager$.apply(LogManager.scala:1111)
at kafka.server.KafkaServer.startup(KafkaServer.scala:273)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
at kafka.Kafka$.main(Kafka.scala:82)
at kafka.Kafka.main(Kafka.scala)
[2020-11-19 10:22:02,566] ERROR Shutdown broker because none of the specified log dirs from /srv/kafka/logdir can be created or validated (kafka.log.LogManager)Comment Actions That's often the behavior i'm looking for when i'm using the "file" instruction on a deep arborescence... |