{
  "id": "redis/cluster-slot-migration-timeout",
  "signature": "ERR Slot migration timed out for slot 1234",
  "signature_zh": "ERR 槽迁移超时，槽 1234",
  "regex": "ERR Slot migration timed out for slot \\d+",
  "domain": "redis",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A cluster slot migration operation exceeded the configured timeout, typically due to network congestion or large key migration.",
  "root_cause_type": "generic",
  "root_cause_zh": "集群槽迁移操作超过配置的超时时间，通常由网络拥塞或大键迁移导致。",
  "versions": [
    {
      "version": "Redis 6.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Redis 7.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Redis 7.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Restarting nodes without addressing the underlying migration issue can cause data inconsistency and longer downtime.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Deleting slot data breaks cluster integrity and leads to data loss; the slot must be properly reassigned.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "A very high timeout masks the problem and may lead to long stalls; it does not fix the root cause like large keys.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use CLUSTER SETSLOT MIGRATING to abort the migration and retry with smaller batches. Example: redis-cli -h source-node CLUSTER SETSLOT 1234 MIGRATING destination-node-id; then use redis-cli --cluster reshard with --pipeline 10 to limit key count per migration.",
      "success_rate": 0.85,
      "how": "Use CLUSTER SETSLOT MIGRATING to abort the migration and retry with smaller batches. Example: redis-cli -h source-node CLUSTER SETSLOT 1234 MIGRATING destination-node-id; then use redis-cli --cluster reshard with --pipeline 10 to limit key count per migration.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase cluster migration timeout via config: CONFIG SET cluster-migration-timeout 60000 (60 seconds) and retry the migration.",
      "success_rate": 0.75,
      "how": "Increase cluster migration timeout via config: CONFIG SET cluster-migration-timeout 60000 (60 seconds) and retry the migration.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Identify and split large keys (e.g., >10MB) before migration to avoid timeout.",
      "success_rate": 0.8,
      "how": "Identify and split large keys (e.g., >10MB) before migration to avoid timeout.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Use CLUSTER SETSLOT MIGRATING to abort the migration and retry with smaller batches. Example: redis-cli -h source-node CLUSTER SETSLOT 1234 MIGRATING destination-node-id; then use redis-cli --cluster reshard with --pipeline 10 to limit key count per migration.",
    "Increase cluster migration timeout via config: CONFIG SET cluster-migration-timeout 60000 (60 seconds) and retry the migration.",
    "Identify and split large keys (e.g., >10MB) before migration to avoid timeout."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/latest/operate/oss_and_stack/management/cluster/",
  "official_doc_section": null,
  "error_code": "ERM",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2023-08-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}