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

AbstractComponentRegistry.getComponent can return an incomplete component

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 5.2.2.Final
    • Transactions
    • None

    Description

      AbstractComponentRegistry.getComponent doesn't have any locking, so it's possible for a thread to retrieve a component while another thread is injecting that component's dependencies.

      Normally this isn't a problem, because the global registry is locked during cache manager startup, and the cache registry is locked during cache startup. However, some global components are only created "on-demand", because a cache component depends on them, and this can happen if someone uses getComponent instead of getOrCreateComponent.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: