CircuitBreaker is going to OPEN state from CLOSED before minimumNumberOfCalls

20 hours ago 2
ARTICLE AD BOX

I'm using custom configuration for the CircuitBreaker -
CircuitBreakerConfig circuitBreakerConfig = CircuitBreakerConfig.custom() .failureRateThreshold(50).slowCallDurationThreshold(60000) .permittedNumberOfCallsInHalfOpenState(5).slidingWindowSize(10) .minimumNumberOfCalls(10).build();

According the above code I should get CallNotPermittedException only after 10 calls, but I'm getting at 6th call.
I've checked it's not slowCall.
FYI: I'm using Resilince4j 2.3.0, and it's COUNT_BASED window.
What could be the reason ?

Read Entire Article