{
  "id": "elasticsearch/translog-too-large",
  "signature": "TranslogTooLargeException: translog size [2.5gb] exceeds maximum size [1.0gb]",
  "signature_zh": "TranslogTooLargeException: 事务日志大小[2.5gb]超过最大大小[1.0gb]",
  "regex": "translog size \\[.*\\] exceeds maximum size \\[.*\\]",
  "domain": "elasticsearch",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "The translog has grown beyond the configured maximum size (default 1GB), often due to slow flushing or high write rate.",
  "root_cause_type": "generic",
  "root_cause_zh": "事务日志增长超过配置的最大大小（默认1GB），通常由于刷新缓慢或高写入速率。",
  "versions": [
    {
      "version": "elasticsearch 8.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "elasticsearch 8.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "elasticsearch 7.17",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "opensearch 2.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Corrupts the index; Elasticsearch will fail to recover and may lose data.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Delays flush but does not reduce existing translog size; may cause OOM on large translog.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Force merge does not affect translog size; translog is separate from segments.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Manually flush the index to clear translog: POST my_index/_flush",
      "success_rate": 0.85,
      "how": "Manually flush the index to clear translog: POST my_index/_flush",
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase translog threshold and perform flush: PUT my_index/_settings { \"index.translog.flush_threshold_size\": \"2gb\", \"index.translog.sync_interval\": \"5s\" }",
      "success_rate": 0.8,
      "how": "Increase translog threshold and perform flush: PUT my_index/_settings { \"index.translog.flush_threshold_size\": \"2gb\", \"index.translog.sync_interval\": \"5s\" }",
      "condition": "",
      "sources": []
    },
    {
      "action": "Reduce indexing rate temporarily to allow translog to flush naturally, then increase flush threshold permanently.",
      "success_rate": 0.75,
      "how": "Reduce indexing rate temporarily to allow translog to flush naturally, then increase flush threshold permanently.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "手动刷新索引以清除事务日志。",
    "增加事务日志阈值并执行刷新。",
    "暂时降低索引速率以允许事务日志自然刷新，然后永久增加刷新阈值。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-translog.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}