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

Component registry should not allow registration during shutdown

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.2.0.Beta2
    • Fix Version/s: 8.2.0.CR1
    • Component/s: Core
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dan.berindei Dan Berindei
                Reporter:
                dan.berindei Dan Berindei
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: