{
  "id": "redis/cluster-node-epoch-conflict",
  "signature": "ERR Node epoch conflict: node 127.0.0.1:7001 has epoch 100, but another node 127.0.0.1:7002 claims same epoch",
  "signature_zh": "节点纪元冲突：节点 127.0.0.1:7001 的纪元为 100，但另一个节点 127.0.0.1:7002 声称具有相同纪元",
  "regex": "ERR Node epoch conflict: node [0-9.:]+ has epoch \\d+, but another node [0-9.:]+ claims same epoch",
  "domain": "redis",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "Two Redis cluster nodes have the same epoch number, causing a conflict in cluster state synchronization and preventing proper failover or configuration updates.",
  "root_cause_type": "generic",
  "root_cause_zh": "两个 Redis 集群节点具有相同的纪元号，导致集群状态同步冲突，阻止了正确的故障转移或配置更新。",
  "versions": [
    {
      "version": "6.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Manually set the epoch on one node using CLUSTER SET-CONFIG-EPOCH with a random value.",
      "why_fails": "This can cause further conflicts if not coordinated; the cluster may reject the change if the epoch is lower than the current one.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Restart both conflicting nodes simultaneously.",
      "why_fails": "The epochs are stored in the nodes.conf file; restarting does not change them, so the conflict persists.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Delete the nodes.conf file on one node and let it rejoin the cluster.",
      "why_fails": "This can cause data loss and disrupt cluster topology; the rejoining node may still get a conflicting epoch.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use CLUSTER RESET on one of the conflicting nodes to reset its epoch to 0, then rejoin the cluster. Example: redis-cli -h 127.0.0.1 -p 7001 CLUSTER RESET HARD",
      "success_rate": 0.85,
      "how": "Use CLUSTER RESET on one of the conflicting nodes to reset its epoch to 0, then rejoin the cluster. Example: redis-cli -h 127.0.0.1 -p 7001 CLUSTER RESET HARD",
      "condition": "",
      "sources": []
    },
    {
      "action": "Force the cluster to rebalance epochs by failing over the master on the node with the conflicting epoch. Example: CLUSTER FAILOVER FORCE on a replica of that master.",
      "success_rate": 0.8,
      "how": "Force the cluster to rebalance epochs by failing over the master on the node with the conflicting epoch. Example: CLUSTER FAILOVER FORCE on a replica of that master.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually update the nodes.conf file on one node to assign a unique epoch (e.g., increment by 1) and restart the node.",
      "success_rate": 0.75,
      "how": "Manually update the nodes.conf file on one node to assign a unique epoch (e.g., increment by 1) and restart the node.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Use CLUSTER RESET on one of the conflicting nodes to reset its epoch to 0, then rejoin the cluster. Example: redis-cli -h 127.0.0.1 -p 7001 CLUSTER RESET HARD",
    "Force the cluster to rebalance epochs by failing over the master on the node with the conflicting epoch. Example: CLUSTER FAILOVER FORCE on a replica of that master.",
    "Manually update the nodes.conf file on one node to assign a unique epoch (e.g., increment by 1) and restart the node."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/latest/operate/oss_admin/cluster-spec/",
  "official_doc_section": null,
  "error_code": "ERR",
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2023-12-11",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}