Uploaded image for project: 'Hibernate ORM'
  1. HHH-9312

Database connection leak with JTA transaction tracking and background thread not releasing database connection

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.7, 4.2.16
    • Component/s: None
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      if transaction time out is detected in the background and the transaction rolled back immediately. Hibernate currently defers the closing of the database connection, until the next application request comes in that uses the affected Hibernate session and then closes the database connection.

      Hibernate should instead close the database connection in the background thread when the Synchronization.afterCompletion(int status) is called.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1h 19m
                  1h 19m