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

Component registry should not allow registration during shutdown

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: