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 2B5D89713 for ; Thu, 13 Oct 2011 15:10:36 +0000 (UTC) Received: (qmail 85849 invoked by uid 500); 13 Oct 2011 15:10:36 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 85812 invoked by uid 500); 13 Oct 2011 15:10:35 -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 85804 invoked by uid 99); 13 Oct 2011 15:10:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2011 15:10:35 +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 15:10:33 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C615630686C for ; Thu, 13 Oct 2011 15:10:11 +0000 (UTC) Date: Thu, 13 Oct 2011 15:10:11 +0000 (UTC) From: "Timothy Bish (Commented) (JIRA)" To: dev@activemq.apache.org Message-ID: <1013391010.9482.1318518611812.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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126655#comment-13126655 ] Timothy Bish commented on AMQ-3529: ----------------------------------- Since JMeter can't be part of the unit tests its important to capture something like this in a JUnit test so that it can be investigated and protected from future breakage. > 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