Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-20113

Possible connection leak on unrestricted session runner

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 7.10-HF13
    • Component/s: Core

      Description

      On runUnrestricted the finaly statement may create a session by calling session.isStateSharedByAllThreadSessions(), this session is not traked by CoreSession but leak in the geronimo pool.

              at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:116)
              at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:106)
              at org.nuxeo.ecm.core.api.local.LocalSession.isStateSharedByAllThreadSessions(LocalSession.java:182)
              at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:142)
      

      So we must check if the session is alive before calling isStateSharedByAllThreadSessions.
      This affect 7.10 to be checked on master.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days
                2d