{
  "id": "redis/rdb-checksum-mismatch-restore",
  "signature": "Error: RDB checksum mismatch: expected 0xAB12CD34 but got 0x5678EF90",
  "signature_zh": "错误：RDB 校验和不匹配：期望 0xAB12CD34 但得到 0x5678EF90",
  "regex": "Error: RDB checksum mismatch: expected 0x[0-9A-Fa-f]+ but got 0x[0-9A-Fa-f]+",
  "domain": "redis",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The RDB file on disk has been corrupted or modified after creation, causing its checksum to differ from the expected value.",
  "root_cause_type": "generic",
  "root_cause_zh": "磁盘上的 RDB 文件在创建后被损坏或修改，导致其校验和与期望值不同。",
  "versions": [
    {
      "version": "6.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Restarting Redis without fixing the RDB file",
      "why_fails": "Redis will reload the same corrupt RDB file and fail again with the same checksum error.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Deleting the RDB file and restarting",
      "why_fails": "This causes complete data loss unless a replica or backup is available.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Running redis-check-rdb with --fix on a heavily corrupted file",
      "why_fails": "The fix tool can only recover partially; if the checksum mismatch is severe, it may truncate the file and lose data.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use redis-check-rdb to validate and attempt repair: 'redis-check-rdb /var/lib/redis/dump.rdb' then if repair is needed 'redis-check-rdb --fix /var/lib/redis/dump.rdb'",
      "success_rate": 0.7,
      "how": "Use redis-check-rdb to validate and attempt repair: 'redis-check-rdb /var/lib/redis/dump.rdb' then if repair is needed 'redis-check-rdb --fix /var/lib/redis/dump.rdb'",
      "condition": "",
      "sources": []
    },
    {
      "action": "Restore from the latest valid RDB backup or promote a replica to primary if replication is configured",
      "success_rate": 0.85,
      "how": "Restore from the latest valid RDB backup or promote a replica to primary if replication is configured",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Use redis-check-rdb to validate and attempt repair: 'redis-check-rdb /var/lib/redis/dump.rdb' then if repair is needed 'redis-check-rdb --fix /var/lib/redis/dump.rdb'",
    "Restore from the latest valid RDB backup or promote a replica to primary if replication is configured"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/management/persistence/",
  "official_doc_section": null,
  "error_code": "ERR",
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.75,
  "resolvable": "partial",
  "first_seen": "2023-11-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}