]
William Burns updated ISPN-6286:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Component registry should not allow registration during shutdown
----------------------------------------------------------------
Key: ISPN-6286
URL:
https://issues.jboss.org/browse/ISPN-6286
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 8.2.0.Beta2
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 8.2.0.CR1
{{AbstractComponentRegistry.getOrCreateComponent()}} is able to create and register a
component even while the cache/cache manager is shutting down. The component isn't
started though, which sometimes leads to {{NullPointerExceptions}} (e.g. ISPN-6277,
{{ClusterTopologyManagerImpl}}).
It shouldn't be possible to re-create a component after the registry enters the
{{STOPPING}} status, and {{getOrCreateComponent()}} should instead throw an
{{IllegalLifecycleStateException}}.