Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13566

Ensure that Jandex indexes are released from JPA deployment memory after deployment completes

    XMLWordPrintable

Details

    Description

      org.jboss.as.jpa.service.PersistenceUnitServiceImpl#start() needs to always call pu.setAnnotationIndex(null) to clear the deployment reference to the Jandex Indexes.

      Currently without the fix, the Jandex Index will be released at application undeployment time. With the fix, the Jandex Index memory will be released after application deployment is complete. Note that the Jandex Index contains metadata for the application deployment classes and are not needed after deployment is complete.

      Note that this problem shouldn't occur when persistence.xml contains:

      <property name="wildfly.jpa.twophasebootstrap" value="false"/>
      

      Attachments

        Activity

          People

            smarlow1@redhat.com Scott Marlow
            smarlow1@redhat.com Scott Marlow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: