Gaurav Narula created KAFKA-16195:
-------------------------------------
Summary: metadata.log.dir failure shouldn't shutdown broker in ZK
mode
Key: KAFKA-16195
URL: https://issues.apache.org/jira/browse/KAFKA-16195
Project: Kafka
Issue Type: Bug
Components: jbod
Affects Versions: 3.7.0
Reporter: Gaurav Narula
{{ReplicaManager::handleLogDirFailure}} shuts down the broker if the directory
that has failed is the same as {{config.metadataLogDir}}
[[0]|https://github.com/apache/kafka/blob/f1924353126fdf6aad2ba1f8d0c22dade59360b1/core/src/main/scala/kafka/server/ReplicaManager.scala#L2601].
If unset, it defaults to the first log directory configured even in ZK mode.
The check should be amended to ensure the broker is either in Migration mode or
Kraft mode and the broker shouldn't shut down when running in ZK mode.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)