You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Barry Coughlan (JIRA)" <ji...@apache.org> on 2015/08/12 12:57:45 UTC

[jira] [Commented] (DBCP-426) DBCP should allow clients to mark connections as invalid

    [ https://issues.apache.org/jira/browse/DBCP-426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14693314#comment-14693314 ] 

Barry Coughlan commented on DBCP-426:
-------------------------------------

I believe there is there a race condition here where the object could be borrowed from the pool after 'connection.close()' returns it to the pool, and the underlying connection will be closed while it is borrowed by another thread.

> DBCP should allow clients to mark connections as invalid
> --------------------------------------------------------
>
>                 Key: DBCP-426
>                 URL: https://issues.apache.org/jira/browse/DBCP-426
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Phil Steitz
>             Fix For: 2.1
>
>
> Currently there is no way for a DBCP client to mark a connection as invalid, effectively requesting the pool to try to close it, remove it from the pool and reclaim pool capacity.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)