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

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

    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"/>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                smarlow Scott Marlow
                Reporter:
                smarlow Scott Marlow
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: