{
  "id": "kafka/invalid-required-acks",
  "signature": "org.apache.kafka.common.errors.InvalidRequiredAcksException: The required acks value is invalid.",
  "signature_zh": "org.apache.kafka.common.errors.InvalidRequiredAcksException：必需的 acks 值无效。",
  "regex": "InvalidRequiredAcksException",
  "domain": "kafka",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The producer sent a request with an invalid 'acks' value (e.g., -2 or 3) that is not in the allowed set of -1, 0, or 1.",
  "root_cause_type": "generic",
  "root_cause_zh": "生产者发送了具有无效 'acks' 值（例如 -2 或 3）的请求，该值不在允许的 -1、0 或 1 集合中。",
  "versions": [],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Setting acks to 'all' (string) instead of -1 (integer) in the producer config causes a different error; this error specifically catches invalid integer values.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Ignoring the error and retrying with the same value will fail repeatedly; the config must be corrected.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set acks to a valid value in the producer properties: `props.put('acks', 'all')` (equivalent to -1) or `props.put('acks', '1')`. Example fix: change `acks=-2` to `acks=1`.",
      "success_rate": 0.9,
      "how": "Set acks to a valid value in the producer properties: `props.put('acks', 'all')` (equivalent to -1) or `props.put('acks', '1')`. Example fix: change `acks=-2` to `acks=1`.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Set acks to a valid value in the producer properties: `props.put('acks', 'all')` (equivalent to -1) or `props.put('acks', '1')`. Example fix: change `acks=-2` to `acks=1`."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://kafka.apache.org/documentation/#producerconfigs_acks",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2023-12-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}