Interview Prep/SRE & Reliability/Reliability Patterns in Production

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.

All SRE & Reliability questions

More on Reliability Patterns in Production