{
  "id": "redis/stream-entries-maxlen-dropped",
  "signature": "ERR Stream 'mystream' has too many entries, old entries will be dropped due to MAXLEN",
  "signature_zh": "流 'mystream' 条目过多，因 MAXLEN 限制旧条目将被丢弃",
  "regex": "ERR Stream '.*' has too many entries, old entries will be dropped due to MAXLEN",
  "domain": "redis",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Stream reached its configured MAXLEN limit, causing automatic eviction of oldest entries.",
  "root_cause_type": "generic",
  "root_cause_zh": "流达到配置的 MAXLEN 限制，导致自动淘汰最旧条目。",
  "versions": [
    {
      "version": "7.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Setting MAXLEN to 0 disables the limit entirely, but may cause unbounded memory growth and eventual OOM.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Manually deleting entries with XDEL does not reduce the stream length counter; only XTRIM works.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase MAXLEN to a higher value: XTRIM mystream MAXLEN ~ 1000000. Use the ~ (tilde) for approximate trimming to reduce overhead.",
      "success_rate": 0.85,
      "how": "Increase MAXLEN to a higher value: XTRIM mystream MAXLEN ~ 1000000. Use the ~ (tilde) for approximate trimming to reduce overhead.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Set a time-based retention policy using MINID: XTRIM mystream MINID ~ 1715000000 (Unix timestamp).",
      "success_rate": 0.75,
      "how": "Set a time-based retention policy using MINID: XTRIM mystream MINID ~ 1715000000 (Unix timestamp).",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "将 MAXLEN 增加到更高值：XTRIM mystream MAXLEN ~ 1000000。使用 ~（波浪号）进行近似修剪以减少开销。",
    "使用 MINID 设置基于时间的保留策略：XTRIM mystream MINID ~ 1715000000（Unix 时间戳）。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/data-types/streams/",
  "official_doc_section": null,
  "error_code": "ERR",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2023-12-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}