From users-return-27333-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Sun May 1 21:30:34 2011 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2DB7C2B2C for ; Sun, 1 May 2011 21:30:34 +0000 (UTC) Received: (qmail 16482 invoked by uid 500); 1 May 2011 21:30:33 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 16455 invoked by uid 500); 1 May 2011 21:30:33 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 16447 invoked by uid 99); 1 May 2011 21:30:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 May 2011 21:30:33 +0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of dcheckoway@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 May 2011 21:30:28 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1QGeDP-0000Z4-G5 for users@activemq.apache.org; Sun, 01 May 2011 14:30:07 -0700 Date: Sun, 1 May 2011 14:30:07 -0700 (PDT) From: dcheckoway To: users@activemq.apache.org Message-ID: In-Reply-To: <1273473671-1304278422-cardhu_decombobulator_blackberry.rim.net-259051029-@bda2448.bisx.prod.on.blackberry> References: <1304265615032-3487950.post@n4.nabble.com> <516975712-1304273936-cardhu_decombobulator_blackberry.rim.net-1435605878-@bda2448.bisx.prod.on.blackberry> <1273473671-1304278422-cardhu_decombobulator_blackberry.rim.net-259051029-@bda2448.bisx.prod.on.blackberry> Subject: Re: InterruptedException with embedded 5.5.0 broker MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19756_3735319.1304285407493" ------=_Part_19756_3735319.1304285407493 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cool. For the ActiveMQ developers, I just want to reiterate/clarify, this is NOT happening at app or context or broker or executor shutdown time as Justin suggested. This is happening mid-run, sporadically. 5.5.0 only. Dan On Sun, May 1, 2011 at 3:34 PM, Justin Randall[via ActiveMQ] < ml-node+3488380-1055209878-140184@n4.nabble.com> wrote: > Understood. > > My point in commenting on InterruptedException is that it shouldn't be > getting caught in that manner. It means that the executor service is likely > not getting shutdown properly. This would be true for any application and > isn't specific to ActiveMQ. > > I'll leave it to the developers to explain why the code is behaving this > way. > > Regards, > > Justin Randall > Sent from my BlackBerry device > > -----Original Message----- > From: dcheckoway <[hidden email]> > > Date: Sun, 1 May 2011 12:13:08 > To: <[hidden email]> > > Reply-To: [hidden email] > Subject: Re: InterruptedException with embedded 5.5.0 broker > > Justin, > > If you look further down the stack trace, you can see it's doing failover > disposal after some sort of wire format exception...or perhaps inactivity > on > the wire (which is extremely unlikely in my app, which is in a constant > mode > of producing messages). I'm looking for ActiveMQ experts to let me know if > > this is typical in 5.5.0 and onward, since I've never seen it occur in > prior > versions. > > Dan > > On Sun, May 1, 2011 at 2:19 PM, Justin Randall[via ActiveMQ] < > [hidden email]> > wrote: > > > Hello, > > > > Not being familiar with the MQ code itself but experienced in Java, > > InterruptedException typically occurs with a thread is interrupted for > > various reasons, but most commonly thread cancellation/shutdown. > > > > From the stack trace it looks like this occurred during the shutdown > > procedure for the TCP pooled executor service. > > > > The fact that InterruptedException occurred is normal and should be > > expected (anytime you shutdown an executor service InterruptedException > > occurs on all active threads in the executor service), but it is not > typical > > to catch InterruptedException and print a stack trace. Usually you > should > > allow InterruptedException to propagate through so that the executor > service > > can properly shutdown all threads. If it is being caught and printed in > the > > manner as indicated below, it would cause improper thread shutdown. > Common > > practices can also include catching InterruptedException, then performing > > > cleanup work and then re-throwing the exception or calling > > Thread.currentThread().interrupt() when complete (allowing the > interruption > > to "bubble up" to the executor service). > > > > That said, if this is only occurring when you are shutting down MQ, while > > > it may not be a sign of good handling of InterruptedException, it is > > unlikely to cause any problems. > > > > Regards, > > > > Justin Randall > > ------Original Message------ > > From: dcheckoway > > To: [hidden email]< > http://user/SendEmail.jtp?type=node&node=3488262&i=0&by-user=t> > > ReplyTo: [hidden email]< > http://user/SendEmail.jtp?type=node&node=3488262&i=1&by-user=t> > > Subject: Re: InterruptedException with embedded 5.5.0 broker > > Sent: May 1, 2011 12:04 > > > > I always forget to mention something...possibly relevant bits of info: > > > > a. This wasn't happening with 5.4.2, but is happening regularly > > (intermittently) with 5.5.0. > > > > b. The pattern this application uses is rapid-fire producing -- no > > consuming > > on that connection. > > > > Thanks! > > -----Dan Checkoway > > dcheckoway gmail com-- > > View this message in context: > > > http://activemq.2283324.n4.nabble.com/InterruptedException-with-embedded-5-5-0-broker-tp3487950p3487959.html > > > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > > > > > > > Sent from my BlackBerry device > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussion > > > below: > > > > > http://activemq.2283324.n4.nabble.com/InterruptedException-with-embedded-5-5-0-broker-tp3487950p3488262.html > > To unsubscribe from InterruptedException with embedded 5.5.0 broker, > click > > here< > > > > > > -----Dan Checkoway > dcheckoway gmail com-- > View this message in context: > http://activemq.2283324.n4.nabble.com/InterruptedException-with-embedded-5-5-0-broker-tp3487950p3488342.html > > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://activemq.2283324.n4.nabble.com/InterruptedException-with-embedded-5-5-0-broker-tp3487950p3488380.html > To unsubscribe from InterruptedException with embedded 5.5.0 broker, click > here. > > -----Dan Checkoway dcheckoway gmail com-- View this message in context: http://activemq.2283324.n4.nabble.com/InterruptedException-with-embedded-5-5-0-broker-tp3487950p3488673.html Sent from the ActiveMQ - User mailing list archive at Nabble.com. ------=_Part_19756_3735319.1304285407493--