ExecutorLifecycleDelegate
should call ExecutorService.isTerminated()
in ….isRunning()
#31549
Labels
Milestone
The verification of whether an
ELD
is currently running is implemented by callingExecutorService.isShutdown()
which only indicates whether the service is currently shutting down, not whether it has fully shut down already. This causes theLifecycle.stop()
invocations of components working with anELD
(ThreadPoolTaskExecutor
, for example) not waiting for the service to fully stop before moving on to process otherLifecycle
implementations.This might leave threads executing methods to work with resources that are prematurely shutdown by follow-up resources managed in downstream
Lifecycle
implementations.The text was updated successfully, but these errors were encountered: