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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: