question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why can't waitDurationInHalfOpenState be 0?

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Macarsecommented, May 28, 2019

I ended up using circuitBreaker.transitionToHalfOpenState(). Thanks!

1reaction
RobWincommented, May 28, 2019

You have different options.

  1. Inject the CircuitBreakerRegistry in you test, get the CircuitBreaker and do a manual transition to half-open with circuitBreaker.transitionToHalfOpenState()
  2. Use a CircuitBreakerRegistry Mock and CircuitBreaker Mock
  3. Overwrite system clock
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found