{
  "id": "redis/command-queue-full",
  "signature": "ERR: Command queue full for client, dropping connection",
  "signature_zh": "错误：客户端命令队列已满，断开连接",
  "regex": "ERR: Command queue full for client.*",
  "domain": "redis",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "A client's command buffer exceeded the client-output-buffer-limit, causing Redis to disconnect it to prevent memory exhaustion.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端的命令缓冲区超过了客户端输出缓冲区限制，导致 Redis 断开连接以防止内存耗尽。",
  "versions": [
    {
      "version": "Redis 6.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Redis 7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Redis 7.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increase client-output-buffer-limit to a very high value (e.g., 1GB)",
      "why_fails": "May hide the underlying issue (e.g., slow consumer or large replies) and risk OOM on Redis server.",
      "fail_rate": 0.45,
      "condition": "",
      "sources": []
    },
    {
      "action": "Restart Redis server to clear all client connections",
      "why_fails": "Temporary fix; the issue will recur if the client behavior isn't changed.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check the client's application logic: use pipelining or batching to reduce the number of commands sent per connection. Example: in Python, use redis-py pipeline.",
      "success_rate": 0.8,
      "how": "Check the client's application logic: use pipelining or batching to reduce the number of commands sent per connection. Example: in Python, use redis-py pipeline.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Monitor slow consumers with CLIENT LIST and consider increasing client-output-buffer-limit for specific client types: CONFIG SET client-output-buffer-limit 'normal 0 0 0' (reset to default).",
      "success_rate": 0.7,
      "how": "Monitor slow consumers with CLIENT LIST and consider increasing client-output-buffer-limit for specific client types: CONFIG SET client-output-buffer-limit 'normal 0 0 0' (reset to default).",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "检查客户端的应用程序逻辑：使用管道或批处理减少每个连接发送的命令数量。例如：在 Python 中使用 redis-py 的 pipeline。",
    "使用 CLIENT LIST 监控慢消费者，并考虑增加特定客户端类型的客户端输出缓冲区限制：CONFIG SET client-output-buffer-limit 'normal 0 0 0'（重置为默认值）。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/latest/develop/reference/clients/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}