]
Tristan Tarrant updated ISPN-9667:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
DefaultCacheManager inconsistent status checks
----------------------------------------------
Key: ISPN-9667
URL:
https://issues.jboss.org/browse/ISPN-9667
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.4.1.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 10.0.0.Alpha1, 9.4.2.Final
{{DefaultCacheManager.getTransport()}} returns {{null}} when the manager is stopping, it
should not.
To make things worse, {{DefaultCacheManager.getStatus()}} returns the status of the
{{GlobalComponentRegistry}}, which is still {{RUNNING}} while caches are shutting down.
That means {{DCM.getTransport()}} and {{DCM.getAddress()}} return {{null}} while the cache
are stopping, and breaks distributed streams on caches that are still running.