spring-cloud / spring-cloud-circuitbreaker

Spring Cloud Circuit Breaker API and Implementations
Apache License 2.0
328 stars 109 forks source link

Spring Cloud Circuit Breaker not auto closing Resilience4 ThreadPoolBulkhead #165

Closed wllianwd closed 1 year ago

wllianwd commented 1 year ago

Currently, the ThreadPoolBulkhead is not auto closing resources.

Tested by using Spring Cloud Circuit Breaker in a batch job, the batch hangs and never finishes as the bulkhead threads are not closed. When configure to use semaphore works fine.

Tested locally with this change, and service is able to properly close the threads.

More info here: https://github.com/resilience4j/resilience4j/issues/1199