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

The last used time in AbandonedTrace should be updated more frequently.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 1.2.1
    • 1.3
    • None

    Description

      The current implementation of DelegatingConnection only updates the last used timestamp in the AbandonedTrace base class when the connection is activated. This can cause the abandoned connection logic to fail if a connection is created and held onto for a long time. I suggest the abandondedTrace.setLastUsed() method be called from various methods in DelegatingConnection to refresh this time. An incomplete list of methods would include those that create and prepare statements and execute sql.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kruland Kevin Ruland
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: