Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6286

Component registry should not allow registration during shutdown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.2.0.CR1
    • 8.2.0.Beta2
    • Core
    • None

      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.

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: