{
  "id": "data/avro-schema-registry-timeout",
  "signature": "SchemaRegistryTimeoutException: timeout waiting for schema registration",
  "signature_zh": "SchemaRegistryTimeoutException: 等待模式注册超时",
  "regex": "SchemaRegistryTimeoutException.*timeout waiting for schema registration",
  "domain": "data",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Kafka Schema Registry client timed out while waiting for the registry to acknowledge schema registration due to network congestion or registry overload.",
  "root_cause_type": "generic",
  "root_cause_zh": "由于网络拥塞或注册表过载，Kafka Schema Registry客户端在等待注册表确认模式注册时超时。",
  "versions": [
    {
      "version": "confluent-kafka 7.5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "avro 1.11.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "kafka-avro-serializer 7.5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increase the schema registry request timeout to a very high value (e.g., 5 minutes)",
      "why_fails": "If the registry is down or network is completely broken, no timeout value will help; it just delays failure.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Restart the Kafka broker to 'refresh' the schema registry connection",
      "why_fails": "Schema registry is a separate service from Kafka brokers; restarting brokers doesn't affect registry connectivity.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Disable schema validation entirely in the producer config",
      "why_fails": "This bypasses the error but can lead to data corruption downstream if schemas are incompatible.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check Schema Registry health: `curl -f http://schema-registry:8081/subjects` — if unreachable, restart the registry service or check network/firewall rules.",
      "success_rate": 0.8,
      "how": "Check Schema Registry health: `curl -f http://schema-registry:8081/subjects` — if unreachable, restart the registry service or check network/firewall rules.",
      "condition": "",
      "sources": []
    },
    {
      "action": "In producer config, set `schema.registry.request.timeout.ms=10000` and `schema.registry.max.retries=5` to allow transient failures to recover.",
      "success_rate": 0.7,
      "how": "In producer config, set `schema.registry.request.timeout.ms=10000` and `schema.registry.max.retries=5` to allow transient failures to recover.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using Confluent Schema Registry with Docker, ensure the registry container has enough resources: `docker update --memory=2g schema-registry` and check `docker logs schema-registry` for OOM errors.",
      "success_rate": 0.75,
      "how": "If using Confluent Schema Registry with Docker, ensure the registry container has enough resources: `docker update --memory=2g schema-registry` and check `docker logs schema-registry` for OOM errors.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Check Schema Registry health: `curl -f http://schema-registry:8081/subjects` — if unreachable, restart the registry service or check network/firewall rules.",
    "In producer config, set `schema.registry.request.timeout.ms=10000` and `schema.registry.max.retries=5` to allow transient failures to recover.",
    "If using Confluent Schema Registry with Docker, ensure the registry container has enough resources: `docker update --memory=2g schema-registry` and check `docker logs schema-registry` for OOM errors."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.confluent.io/platform/current/schema-registry/develop/api.html",
  "official_doc_section": null,
  "error_code": "SchemaRegistryTimeoutException",
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.75,
  "resolvable": "true",
  "first_seen": "2024-02-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}