Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9D41290BB for ; Thu, 13 Oct 2011 06:39:45 +0000 (UTC) Received: (qmail 31661 invoked by uid 500); 13 Oct 2011 06:39:45 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 30436 invoked by uid 500); 13 Oct 2011 06:39:38 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 30400 invoked by uid 99); 13 Oct 2011 06:39:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2011 06:39:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2011 06:39:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E255F305A35 for ; Thu, 13 Oct 2011 06:39:11 +0000 (UTC) Date: Thu, 13 Oct 2011 06:39:11 +0000 (UTC) From: "Philippe Mouawad (Commented) (JIRA)" To: dev@activemq.apache.org Message-ID: <489105833.8088.1318487951928.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <296667712.11753.1318089869688.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3529) Calling Thread.interrupt while in MessageConsumer#receive(timeout) generates java.io.InterruptedIOException and leaks Connection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126381#comment-13126381 ] Philippe Mouawad commented on AMQ-3529: --------------------------------------- Hello, Creating a JUnit Test is difficult as issues involves threading and interruption. With Test Plan provided at JMeter Bugzilla you can reproduce it very easily with the described scenario, note it doesn't occur with OpenJMS. Regards Philippe > Calling Thread.interrupt while in MessageConsumer#receive(timeout) generates java.io.InterruptedIOException and leaks Connection > --------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-3529 > URL: https://issues.apache.org/jira/browse/AMQ-3529 > Project: ActiveMQ > Issue Type: Bug > Components: JMS client > Affects Versions: 5.5.0 > Reporter: Philippe Mouawad > > Hello, > While running tests with JMeter and calling stop while test is running, I see that Transport thread stays open and all close() on Connection, MessageConsumer, Session calls fails with exception: > 2011/10/08 17:16:59 ERROR - jmeter.protocol.jms.client.ReceiveSubscriber: Error during close: javax.jms.JMSException: java.io.InterruptedIOException > at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62) > at org.apache.activemq.ActiveMQConnection.doSyncSendPacket(ActiveMQConnection.java:1342) > at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:660) > at org.apache.jmeter.protocol.jms.Utils.close(Utils.java:65) > at org.apache.jmeter.protocol.jms.client.ReceiveSubscriber.close(ReceiveSubscriber.java:236) > at org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.threadFinished(SubscriberSampler.java:305) > at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:579) > at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:986) > at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:969) > at org.apache.jmeter.threads.JMeterThread.threadFinished(JMeterThread.java:554) > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:328) > at java.lang.Thread.run(Thread.java:680) > Caused by: java.io.InterruptedIOException > at org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:102) > at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40) > at org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:81) > at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:91) > at org.apache.activemq.ActiveMQConnection.doSyncSendPacket(ActiveMQConnection.java:1329) > ... 10 more > I opened an issue in JMeter with all details but I think issue is in ActiveMQ, see: > https://issues.apache.org/bugzilla/show_bug.cgi?id=51997 > Issue contains a Test Plan, and all details. > Regards > Philippe -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira