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

Component registry should not allow registration during shutdown

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

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)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: