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 96055DC15 for ; Tue, 21 Aug 2012 15:49:40 +0000 (UTC) Received: (qmail 46142 invoked by uid 500); 21 Aug 2012 15:49:39 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 46044 invoked by uid 500); 21 Aug 2012 15:49:39 -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 45883 invoked by uid 99); 21 Aug 2012 15:49:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 15:49:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 4041D2C5C09 for ; Tue, 21 Aug 2012 15:49:38 +0000 (UTC) Date: Wed, 22 Aug 2012 02:49:38 +1100 (NCT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Message-ID: <1823880582.35881.1345564178263.JavaMail.jiratomcat@arcas> In-Reply-To: <2058736100.35703.1345561238132.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (AMQ-3985) ActiveMQConnection temp advisory consumer should use asyncDispatch - can cause deadlock with slow consumers 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-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully resolved AMQ-3985. ----------------------------- Resolution: Fixed Assignee: Gary Tully fix in http://svn.apache.org/viewvc?rev=1375595&view=rev > ActiveMQConnection temp advisory consumer should use asyncDispatch - can cause deadlock with slow consumers > ----------------------------------------------------------------------------------------------------------- > > Key: AMQ-3985 > URL: https://issues.apache.org/jira/browse/AMQ-3985 > Project: ActiveMQ > Issue Type: Bug > Components: JMS client > Affects Versions: 5.6.0 > Reporter: Gary Tully > Assignee: Gary Tully > Labels: advisory, consumer, deadlock, slow, temp > Fix For: 5.7.0 > > > A slow or blocked connection with the default temp advisory consumer can cause operations that create advisories to block b/c the dispatch is sync to that advisory consumer. If the block occurs after the prefetch is filled the broker stores pending messages and the problem is avoided, but if the block occurs before the prefetch is reached, the dispatch is attempted in the calling thread, which blocks the originating operation. not good. > The solution is to always request async dispatch for the temp advisory consumer in a client connection. -- 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