Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 62530 invoked from network); 7 Jan 2009 07:56:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2009 07:56:28 -0000 Received: (qmail 29234 invoked by uid 500); 7 Jan 2009 07:56:28 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 29213 invoked by uid 500); 7 Jan 2009 07:56:28 -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 29202 invoked by uid 99); 7 Jan 2009 07:56:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2009 23:56:28 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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, 07 Jan 2009 07:56:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 82FE6234C47E for ; Tue, 6 Jan 2009 23:56:05 -0800 (PST) Message-ID: <1535864734.1231314965534.JavaMail.jira@brutus> Date: Tue, 6 Jan 2009 23:56:05 -0800 (PST) From: "David Jencks (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2053) AMQMessageStore.flushLatch can apparently get stuck In-Reply-To: <1702341665.1231033325414.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48519#action_48519 ] David Jencks commented on AMQ-2053: ----------------------------------- Problem is that the AMQMessageStore is closed but not removed from the cache inside the PersistenceAdapter. Next time a Queue (or Topic) is created it gets the stopped and unusable message store from the cache. After chatting with Hiram on the dev list I think introducing methods to remove the message store from the persistence adapter is the best way forward. Looking at svn history this problem was introduced in the fix for AMQ-1842, rev 729939, where the calls to stop the MessageStore were introduced. > AMQMessageStore.flushLatch can apparently get stuck > --------------------------------------------------- > > Key: AMQ-2053 > URL: https://issues.apache.org/activemq/browse/AMQ-2053 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.3.0 > Reporter: David Jencks > Assignee: David Jencks > Fix For: 5.3.0 > > > A couple hours into the tck I see everything freeze. Looking at the threads there are a lot of waits on Queue.dispatchLock in addSubscription but one thread made it through to AMQMessageStore and is waiting at line 316 in flush on the countdown latch. > Only problem I can see causing this so far is the countdown in asyncWrite not being in a finally block. I don't see any exceptions in the log.... so not sure yet. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.