Logs fill with `CallNotPermittedException: CircuitBreaker 'inventory' is OPEN and does not permit further calls` long after inventory recovered.
IntermediateTroubleshootingReliability Patterns in Production
Answer
Likely causes → The breaker cannot close: half-open trial calls keep failing (they time out because the timeout is too short for a cold dependency), permittedNumberOfCallsInHalfOpenState is tiny, or waitDurationInOpenState is very long.
Diagnose → Check breaker state metrics (resilience4j_circuitbreaker_state) and the result of half-open calls; call inventory manually from the pod.
Fix → Tune waitDurationInOpenState (for example 30s), allow several half-open calls, and make sure the call timeout is realistic for a recovering dependency.
Prevent → Export breaker state as metrics, alert on breakers open longer than N minutes, and test recovery in chaos experiments.
More on Reliability Patterns in Production
Clients get 503s with body `upstream connect error or disconnect/reset before headers. reset reason: overflow`, and Envoy logs show flag `UO`.AdvancedNGINX ingress returns 504 and logs `upstream timed out (110: Connection timed out) while reading response header from upstream`.BeginnerAfter a 30-second database blip, Postgres keeps rejecting connections with `FATAL: sorry, too many clients already` for 20 minutes.AdvancedCustomers were charged twice during an incident where the payment API timed out.AdvancedEvery rolling deploy produces a short burst of 502s on the AWS ALB.IntermediateRedis restarted and immediately the database CPU hit 100% and the site went down.Advanced