You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Vladimir Konkov (JIRA)" <ji...@apache.org> on 2014/10/04 13:17:34 UTC
[jira] [Updated] (DBCP-427) Examines 'SQLException's thrown by
underlying connections or statements for fatal (disconnection) errors
[ https://issues.apache.org/jira/browse/DBCP-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Konkov updated DBCP-427:
---------------------------------
Attachment: DBCP-427_initial_impl.diff
Patch with initial implementation for examining SQLException for disconnection codes. List of codes is given from HikariCP and BoneCP projects.
> Examines 'SQLException's thrown by underlying connections or statements for fatal (disconnection) errors
> --------------------------------------------------------------------------------------------------------
>
> Key: DBCP-427
> URL: https://issues.apache.org/jira/browse/DBCP-427
> Project: Commons Dbcp
> Issue Type: Improvement
> Reporter: Vladimir Konkov
> Priority: Minor
> Attachments: DBCP-427_initial_impl.diff
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)