Closed Shabin closed 1 year ago
we also have the same issue here. waiting for a response from the community.
What version are you using? Support for configuring by properties wasn't released in Hoxton.SR11 until April 21
That time I checked out the master code and used it for verifying the functionality. Now I tried the same with the spring-cloud-starter-circuitbreaker-resilience4j
2.0.2 version and found the same issue.
Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
I was trying to setup a sample with resilience4j semaphore bulkhead support with maxConcurrentCalls set as 1.
My backend service code:
When one call was waiting on the backend service to get a response, I made a second call to the same service.
Even though the second call failed with
Bulkhead 'backendA' is full and does not permit further calls
exception, my backend service code was executed anyway and I got the logs.On debugging
Resilience4jBulkheadProvider
, found thatCompletableFuture<T> asyncCall = CompletableFuture.supplyAsync(supplier);
started a forkjoinpool thread and backend code execution was initiated even before the semaphore check was done.I was under the impression that the backend code will be called only if semaphore check was succeeded.