{
  "id": "grpc/channel-connectivity-watch-failure",
  "signature": "INTERNAL: grpc: Channel connectivity watch failed: Too many pending watches",
  "signature_zh": "内部错误：gRPC：通道连接状态监视失败：待处理监视过多",
  "regex": "INTERNAL: grpc: Channel connectivity watch failed: Too many pending watches",
  "domain": "grpc",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "Too many concurrent connectivity watches were registered on the same channel, exceeding the internal limit.",
  "root_cause_type": "generic",
  "root_cause_zh": "同一通道上注册了太多并发连接状态监视，超过了内部限制。",
  "versions": [
    {
      "version": "gRPC C++ 1.52.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC Core 1.53.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The limit is per channel; creating more channels may exhaust other resources.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This reduces the timeout but does not prevent the limit from being hit.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The watch failure may cause missed connectivity changes, leading to RPC failures.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Limit the number of concurrent watches per channel. In C++, use `channel->GetState(true)` instead of multiple `NotifyOnStateChange` calls.",
      "success_rate": 0.85,
      "how": "Limit the number of concurrent watches per channel. In C++, use `channel->GetState(true)` instead of multiple `NotifyOnStateChange` calls.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase the limit via `GRPC_ARG_MAX_PENDING_WATCHES` (if available) or use a separate channel per watch group.",
      "success_rate": 0.75,
      "how": "Increase the limit via `GRPC_ARG_MAX_PENDING_WATCHES` (if available) or use a separate channel per watch group.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Limit the number of concurrent watches per channel. In C++, use `channel->GetState(true)` instead of multiple `NotifyOnStateChange` calls.",
    "Increase the limit via `GRPC_ARG_MAX_PENDING_WATCHES` (if available) or use a separate channel per watch group."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://grpc.io/docs/guides/performance/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.81,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-06-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}