{
  "id": "kafka/log-dir-offline",
  "signature": "LogDirOfflineException: One or more log directories are offline.",
  "signature_zh": "LogDirOfflineException：一个或多个日志目录离线。",
  "regex": "LogDirOfflineException",
  "domain": "kafka",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "A disk failure or filesystem issue has caused one or more Kafka data directories to become inaccessible, leading to broker unavailability for those partitions.",
  "root_cause_type": "generic",
  "root_cause_zh": "磁盘故障或文件系统问题导致一个或多个 Kafka 数据目录无法访问，从而导致这些分区的代理不可用。",
  "versions": [],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Simply restarting the broker without addressing the disk failure will cause the same error; the broker will detect the offline directory again.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Increasing log retention or cleanup policies doesn't fix a hardware failure; the underlying disk must be repaired or replaced.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Identify the offline directory from broker logs: `grep 'offline' /var/log/kafka/server.log`. Then unmount and check the disk with `fsck`, or replace it. After repair, restart the broker. Example: `sudo umount /data/kafka && sudo fsck -y /dev/sdb1 && sudo mount /data/kafka && kafka-server-start.sh config/server.properties`.",
      "success_rate": 0.7,
      "how": "Identify the offline directory from broker logs: `grep 'offline' /var/log/kafka/server.log`. Then unmount and check the disk with `fsck`, or replace it. After repair, restart the broker. Example: `sudo umount /data/kafka && sudo fsck -y /dev/sdb1 && sudo mount /data/kafka && kafka-server-start.sh config/server.properties`.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Identify the offline directory from broker logs: `grep 'offline' /var/log/kafka/server.log`. Then unmount and check the disk with `fsck`, or replace it. After repair, restart the broker. Example: `sudo umount /data/kafka && sudo fsck -y /dev/sdb1 && sudo mount /data/kafka && kafka-server-start.sh config/server.properties`."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://kafka.apache.org/documentation/#log_dirs",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.7,
  "resolvable": "partial",
  "first_seen": "2024-04-02",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}