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

InvalidateConnection can result in closed connection returned by getConnection

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.1.1
    • Fix Version/s: 2.2.0
    • Labels:
      None

      Description

      BasicDataSource#invalidateConnection closes the pooled connection before invalidating it. If a getConnection request arrives between the close and invalidate, a closed connection could be returned to a client.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              psteitz Phil Steitz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: