Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-578

org.apache.deltaspike.data.impl.meta.RepositoryComponent is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.7
    • Data-Module
    • None

    Description

      The lazy init process is not thread safe. In particular the code checks if entityManagerResolverIsNormalScope is null to determine if the entity is initialised, however this is set before the initialisation is actually completed, meaning a thread can get an uninitialized component, which then causes problems.

      The initialize() call should be moved up to before entityManagerResolverIsNormalScope is set.

      Attachments

        1. DELTASPIKE-578.patch
          0.9 kB
          Gerhard Petracek

        Activity

          People

            thomashug Thomas Hug
            swd847 Stuart Douglas
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: