Why can't waitDurationInHalfOpenState be 0?
See original GitHub issueI am doing some integration tests and I just noticed the exception.
What’s the reason behind not allowing the waitDurationInHalfOpenState
to be 0?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
CircuitBreaker waitDurationInOpenState does not work
I am using spring-cloud-starter-circuitbreaker-resilience4j and spring boot and following is configuration for the CircuitBreaker:
Read more >CircuitBreaker - resilience4j
Value 0 means Circuit Breaker would wait infinitely in HalfOpen State until all permitted calls have been completed. Configures the type of the...
Read more >Implementing a Circuit Breaker with Resilience4j - Reflectoring
waitDurationInOpenState() specifies the time that the circuit breaker should wait before switching to a half-open state.
Read more >Circuit Breaking In Spring Cloud Gateway With Resilience4J
This tutorial shows how to use a circuit breaker filter in Spring Cloud Gateway. The circuit breaker is built with the Resilience4J project....
Read more >CircuitBreakerConfig.Builder (resilience4j-circuitbreaker 0.16 ...
Duration waitDurationInOpenState) ... The threshold must be greater than 0 and not greater than 100. ... Builder waitDurationInOpenState(java.time.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ended up using
circuitBreaker.transitionToHalfOpenState()
. Thanks!You have different options.
circuitBreaker.transitionToHalfOpenState()