Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-39769

JIRA leaks DB connections

    XMLWordPrintable

Details

    Description

      Component: entityengine
      Class: GenericDAO.java
      Method: selectListIteratorByCondition

      Description:
      In case an exception is thrown after the SQLProcessor instance is created, a database connection is leaked because the SQLProcessor instance is not closed.

      Solution:
      The code after the createion of the SQLProcessor instance must be in try-catch block intercepting GenericEntityException and RuntimeException.
      In case of caught exception, the SQLProcessor instance must be closed and the exception re-thrown.

      Affected versions:
      This issue was discovered in our productive JIRA v. 6.1.3, but after looking at the source it is still present in 6.3.4

      Attachments

        Issue Links

          Activity

            People

              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              aa1cc56303ab Svetlin Zarev
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: