Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 54935 invoked from network); 13 Oct 2009 16:29:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Oct 2009 16:29:55 -0000 Received: (qmail 99944 invoked by uid 500); 13 Oct 2009 16:29:55 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 99826 invoked by uid 500); 13 Oct 2009 16:29:55 -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 99766 invoked by uid 99); 13 Oct 2009 16:29:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 16:29:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 16:29:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 58F31234C045 for ; Tue, 13 Oct 2009 09:29:31 -0700 (PDT) Message-ID: <1701207893.1255451371359.JavaMail.jira@brutus> Date: Tue, 13 Oct 2009 09:29:31 -0700 (PDT) From: "Hassan Sajjad (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (POOL-151) Eviction thread is able to remove (destroy) in-flight (borrowed) objects In-Reply-To: <1945826669.1255450171412.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/POOL-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765140#action_12765140 ] Hassan Sajjad commented on POOL-151: ------------------------------------ Another use case illustrating the closed (post eviction) object being reused / borrowed, which subsequently failed due to the prior action from the evictor. {noformat} 2009-10-13 14:52:14,407 DEBUG [asyncDelivery51] Returning session com.ibm.mq.jms.MQQueueSession@1902242 for jms connector 2009-10-13 14:52:14,875 DEBUG [Timer-0] Physically closing com.ibm.mq.jms.MQQueueSession@1902242 for connector 2009-10-13 14:52:14,876 DEBUG [asyncDelivery64] Borrowed session com.ibm.mq.jms.MQQueueSession@1902242 for jms connector 2009-10-13 14:52:14,931 FATAL [asyncDelivery64] Failed to dispatch message [javax.jms.IllegalStateException: MQJMS1024: session closed] {noformat} In the above log, thread id [asyncDelivery51] represents the last request that processed OK and object was returned successfully after event completion. Thread id [asyncDelivery64] failed because of this issue. > Eviction thread is able to remove (destroy) in-flight (borrowed) objects > ------------------------------------------------------------------------ > > Key: POOL-151 > URL: https://issues.apache.org/jira/browse/POOL-151 > Project: Commons Pool > Issue Type: Bug > Affects Versions: 1.5.3 > Reporter: Hassan Sajjad > Priority: Blocker > > Under high concurrent use, the eviction thread can temper with an in-use object from the pool, potentially causing catastrophic results, as illustrate in the below log from our use. Note the object - in our case JMSSession is closed in-flight (after message send but before commit), causing the commit to fail with {{javax.jms.IllegalStateException: MQJMS1024: session closed}} error. > {noformat} > 2009-10-12 15:08:40,254 DEBUG [asyncDelivery59] Borrowed session com.ibm.mq.jms.MQQueueSession@40bc88 for jms connector > 2009-10-12 15:08:40,341 DEBUG [Timer-0] Physically closing com.ibm.mq.jms.MQQueueSession@40bc88 for connector > 2009-10-12 15:08:40,669 DEBUG [asyncDelivery59] Returning session com.ibm.mq.jms.MQQueueSession@40bc88 for jms conn > ector > 2009-10-12 15:08:40,433 ERROR [asyncDelivery59] Exception caught while committing transaction [com.ibm.mq.jms.MQQueueSession@40bc88] > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.