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