Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A9EEE200BC2 for ; Wed, 2 Nov 2016 22:43:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A8993160AF0; Wed, 2 Nov 2016 21:43:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 00832160AFB for ; Wed, 2 Nov 2016 22:42:59 +0100 (CET) Received: (qmail 96677 invoked by uid 500); 2 Nov 2016 21:42:59 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 96611 invoked by uid 99); 2 Nov 2016 21:42:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 21:42:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E6ED02C1F56 for ; Wed, 2 Nov 2016 21:42:58 +0000 (UTC) Date: Wed, 2 Nov 2016 21:42:58 +0000 (UTC) From: "Mark Thomas (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DBCP-468) Hardcoded value false for fastFailValidation on constructor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 02 Nov 2016 21:43:00 -0000 [ https://issues.apache.org/jira/browse/DBCP-468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Thomas resolved DBCP-468. ------------------------------ Resolution: Fixed Fix Version/s: 2.2 Thanks for the report. > Hardcoded value false for fastFailValidation on constructor > ----------------------------------------------------------- > > Key: DBCP-468 > URL: https://issues.apache.org/jira/browse/DBCP-468 > Project: Commons Dbcp > Issue Type: Bug > Affects Versions: 2.2, 2.1.1 > Reporter: Euclides M > Fix For: 2.2 > > > Debugging my code, i Found that fastFailValidation is always false because of this Constructor: > {code:title=org.apache.commons.dbcp2.PoolableConnection|borderStyle=solid} > /** > * > * @param conn my underlying connection > * @param pool the pool to which I should return when closed > * @param jmxName JMX name > */ > public PoolableConnection(Connection conn, > ObjectPool pool, ObjectName jmxName) { > this(conn, pool, jmxName, null, false); > } > {code} > Notice that 4th and 5th params are for fastFailValidation. It will always be false. (and null for sql codes) > My Pool definition (spring): > {code:xml} > > > > > > > > > > > > > > > > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)