]
Paul Ferraro updated ISPN-5175:
-------------------------------
Summary: LazyInitializingExecutorService.isShutdown() returns true before service is
shutdown (was: LazyInitializingExecutorService isShutdown() returns true before service
is shutdown)
LazyInitializingExecutorService.isShutdown() returns true before
service is shutdown
------------------------------------------------------------------------------------
Key: ISPN-5175
URL:
https://issues.jboss.org/browse/ISPN-5175
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 7.0.3.Final, 7.1.0.CR2
Reporter: Paul Ferraro
ExecutorService.isShutdown() should not return true until shutdown() or shutdownNow() is
invoked. A return value of true should mean that the executor no longer accepts new
submissions. However, LazyInitializingExecutorService.isShutdown() returns true if the
executor was not yet initialized.
The same reasoning applies to isTerminated().
This is particularly relevant to DefaultExecutorService, which throws an
IllegalStateException if constructed with a new LazyInitializingExecutorService.