Open tushar-meesho opened 1 year ago
The problem in your code is that your code is throwing an exception instead of returning a CompletableFurure which completed exceptionally.
@RobWin Code is not really throwing an exception, exception is being thrown by TimeLimiter itself.
Yes, I deleted the comment. I'm on vacation and answered too fast :)
So, how are supposed to solve this issue. I am trying to solve the same thing, where Timeoutexception is not opening the r4j circuit
Hi, did you try to debug it. Can you see why the TimeoutException is not recorded as a failure?
Resilience4j version:
Java version: 17
I am using below code, and what I have seen is BulkheadFullException and RuntimeException is changing the state of circuitbreaker from CLOSED to OPEN, whereas that's not the case with TimeoutException.
Q1. Even though there's only one fallback which is in circuit breaker, still TimeoutException's is not opening the CircuitBreaker, why this strange behaviour, and How to achieve this ?