{
  "id": "kafka/dead-letter-queue-producer-exception-on-send",
  "signature": "org.apache.kafka.common.errors.DeadLetterQueueException: Failed to send record to dead letter topic DLQ_topic",
  "signature_zh": "org.apache.kafka.common.errors.DeadLetterQueueException：无法发送记录到死信主题DLQ_topic",
  "regex": "DeadLetterQueueException.*Failed to send record to dead letter topic",
  "domain": "kafka",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A Kafka Streams or Kafka Connect dead letter queue producer encountered an error when attempting to forward a failed record to the configured DLQ topic, often due to serialization or ACL issues.",
  "root_cause_type": "generic",
  "root_cause_zh": "Kafka Streams或Kafka Connect死信队列生产者在尝试将失败记录转发到配置的DLQ主题时遇到错误，通常是由于序列化或ACL问题。",
  "versions": [
    {
      "version": "Kafka 3.4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Kafka 3.6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Kafka 3.7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Setting producer retries to Integer.MAX_VALUE",
      "why_fails": "Increasing producer retries only delays the eventual failure; the root cause is usually misconfiguration.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing the DLQ configuration from the connector",
      "why_fails": "Disabling the DLQ entirely loses the failed records and defeats the purpose of error handling.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the DLQ topic exists and has correct ACLs using 'bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic DLQ_topic' and 'bin/kafka-acls.sh --bootstrap-server localhost:9092 --list --topic DLQ_topic'.",
      "success_rate": 0.88,
      "how": "Verify the DLQ topic exists and has correct ACLs using 'bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic DLQ_topic' and 'bin/kafka-acls.sh --bootstrap-server localhost:9092 --list --topic DLQ_topic'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Ensure the DLQ producer uses the same key/value serializers as the main topic. In Kafka Streams, set 'dlq.topic.name' and configure 'default.key.serde' and 'default.value.serde' correctly.",
      "success_rate": 0.82,
      "how": "Ensure the DLQ producer uses the same key/value serializers as the main topic. In Kafka Streams, set 'dlq.topic.name' and configure 'default.key.serde' and 'default.value.serde' correctly.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the DLQ topic exists and has correct ACLs using 'bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic DLQ_topic' and 'bin/kafka-acls.sh --bootstrap-server localhost:9092 --list --topic DLQ_topic'.",
    "Ensure the DLQ producer uses the same key/value serializers as the main topic. In Kafka Streams, set 'dlq.topic.name' and configure 'default.key.serde' and 'default.value.serde' correctly."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://kafka.apache.org/documentation/streams/developer-guide/config-streams.html#dead-letter-queue",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.76,
  "resolvable": "true",
  "first_seen": "2024-02-28",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}