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

Consider SQLExceptions thrown by underlying connections or statements for fatal (disconnection) errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.4.1, 2.5.0
    • None

    Description

      Affected cases:
      1. Ability to detect severed connection without need for validity check (it can be time demand).
      2. Not all fatal errors detected with simple validation query or isValid() call. For example:
      Broken XA connections of MS SQL Server and Oracle Database (and may be other) pass validation for both isValid() and simple validation query such as 'SELEC 1 FROM DUAL' but throw fatal errors on data and/or transaction manipulation calls. Such errors gone only after reconnect. In case of use DBCP for polling application has no chance to cleanup broken connection.

      By providing infractructure for check thrown exceptions and mark PoolableConnection as poisoned we can cleanup pool on validation phase.

      Attachments

        1. DBCP-427_initial_impl.diff
          8 kB
          Vladimir Konkov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vladimirfx Vladimir Konkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: