{
  "id": "kafka/invalid-commit-offset-sync",
  "signature": "org.apache.kafka.common.errors.InvalidCommitOffsetSyncException: Offset commit failed due to synchronization conflict with the group coordinator",
  "signature_zh": "org.apache.kafka.common.errors.InvalidCommitOffsetSyncException：由于与组协调器的同步冲突，偏移提交失败",
  "regex": "InvalidCommitOffsetSyncException.*synchronization conflict",
  "domain": "kafka",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The consumer attempted to commit offsets while the group coordinator was in the middle of a rebalance or epoch change, causing a synchronization mismatch.",
  "root_cause_type": "generic",
  "root_cause_zh": "消费者在组协调器正在进行再平衡或纪元变更时尝试提交偏移量，导致同步不匹配。",
  "versions": [
    {
      "version": "kafka 3.4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "kafka 3.5.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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "A restart triggers another rebalance, which may re-introduce the synchronization conflict, especially if the coordinator state is stale.",
      "fail_rate": 0.65,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This does not prevent the epoch change that causes the conflict; it only delays rebalance detection, possibly masking the underlying issue.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set 'enable.auto.commit=false' and manually commit offsets only after ensuring the consumer is in a stable state (e.g., after a successful poll that does not trigger rebalance). Add a retry loop with exponential backoff for commit calls.",
      "success_rate": 0.85,
      "how": "Set 'enable.auto.commit=false' and manually commit offsets only after ensuring the consumer is in a stable state (e.g., after a successful poll that does not trigger rebalance). Add a retry loop with exponential backoff for commit calls.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Upgrade the Kafka client library to version 3.7.0 or later, which includes a fix for coordinator epoch synchronization in offset commits.",
      "success_rate": 0.95,
      "how": "Upgrade the Kafka client library to version 3.7.0 or later, which includes a fix for coordinator epoch synchronization in offset commits.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Set 'enable.auto.commit=false' and manually commit offsets only after ensuring the consumer is in a stable state (e.g., after a successful poll that does not trigger rebalance). Add a retry loop with exponential backoff for commit calls.",
    "Upgrade the Kafka client library to version 3.7.0 or later, which includes a fix for coordinator epoch synchronization in offset commits."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://kafka.apache.org/documentation/#upgrade_340",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}