Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 97924 invoked from network); 17 Mar 2010 16:26:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 16:26:08 -0000 Received: (qmail 71744 invoked by uid 500); 17 Mar 2010 16:26:08 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 71720 invoked by uid 500); 17 Mar 2010 16:26:08 -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 71712 invoked by uid 99); 17 Mar 2010 16:26:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 16:26:08 +0000 X-ASF-Spam-Status: No, hits=-1042.3 required=10.0 tests=ALL_TRUSTED,AWL 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; Wed, 17 Mar 2010 16:26:07 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B212C234C4AB for ; Wed, 17 Mar 2010 16:25:46 +0000 (UTC) Message-ID: <2123523140.16181268843146727.JavaMail.jira@brutus.apache.org> Date: Wed, 17 Mar 2010 16:25:46 +0000 (UTC) From: "Rob Davies (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-2645) Deadlock during FailoverTransport interruption In-Reply-To: <2096443773.10171268232348451.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Davies resolved AMQ-2645. ----------------------------- Resolution: Fixed Fix Version/s: (was: 5.3.1) 5.4.0 Fixed by svn revision 924350 > Deadlock during FailoverTransport interruption > ---------------------------------------------- > > Key: AMQ-2645 > URL: https://issues.apache.org/activemq/browse/AMQ-2645 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.3.1 > Reporter: Dariusz Szablinski > Assignee: Rob Davies > Priority: Blocker > Fix For: 5.4.0 > > Attachments: screenshot-1.JPG, screenshot-2.JPG > > > Here is my scenario: > 1) Two AMQ servers setup with shared persistence storage (replicated message store) > 2) Single client constantly sends/receives small messages to/form one queue and uses single Connection with failover transport configured. The client code you can find here: AMQ-2512. > 3) After pushing several messages, shutdown active AMQ node - second one will kick in; client will successfully reconnect to this new active node; however it won't be able to receive any message out of the queue. Following warning is also generated by the client every 15s: "WARNING: dispatch paused, waiting for outstanding dispatch interruption processing (20) to complete..". > During debugging I've found that code which is supposed to clean messages during reconnection await for MessageDispatchChannel mutex owned by one of the session threads (screenshot-1). This session thread, from the other hand, is in the middle of send operation and waits for server's response. In result messages dispatch awaits infinitely on CountDownLatch which is supposed to be decremented by the deadlocked messages cleaning code (screenshot-2). > This occurs in the latest 5.3.1-SNAPSHOT as well as in 5.3.0-fuse-01-00 version. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.