Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-516

Do not double returnObject back to the pool if there is a transaction context with a shared connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0
    • None

    Description

      It is possible for the same thread to return a connection to the pool twice:

      // in TX
      c = getConnection()
      // in aftercompletion
      c.getWarnings()
      c.getWarnings()

      This issue was uncovered after resolving DBCP-515.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tomjenkinson Tom Jenkinson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: