Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 30839 invoked from network); 30 Nov 2010 20:44:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 20:44:45 -0000 Received: (qmail 13587 invoked by uid 500); 30 Nov 2010 20:44:44 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 13559 invoked by uid 500); 30 Nov 2010 20:44:44 -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 13551 invoked by uid 99); 30 Nov 2010 20:44:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 20:44:44 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 20:44:42 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAUKiKrh021660 for ; Tue, 30 Nov 2010 20:44:20 GMT Message-ID: <8105739.34781291149860497.JavaMail.jira@thor> Date: Tue, 30 Nov 2010 15:44:20 -0500 (EST) From: "Dominic Tootell (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-3061) Broker Deadlock when limiting size of temp store, and using VirtualTopics In-Reply-To: <9176450.34491291149620098.JavaMail.jira@thor> 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-3061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dominic Tootell updated AMQ-3061: --------------------------------- Attachment: activemq-deadlock-replication-541.tar.gz Source project as a tar.gz > Broker Deadlock when limiting size of temp store, and using VirtualTopics > ------------------------------------------------------------------------- > > Key: AMQ-3061 > URL: https://issues.apache.org/jira/browse/AMQ-3061 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.3.2, 5.4.1 > Environment: Mac 10.6.5 (and Linux Centos) > Reporter: Dominic Tootell > Attachments: activemq-deadlock-replication-541.tar.gz > > > When limiting the Temp Table space the broker will dead lock: > - 1 Producer Thread (own connection) writing to VirtualTopic.FooTwo > -- writes 40000 messages > - 2 Consumer Threads (each own connection) consuming from Consumer.X.VirtualTopic.FooTwo > -- consumes message (auto ack - but message ack for good measure - delay of 100ms between consumption) > The dead lock occurs when using the either the KahaDB or ActiveMQPersistence persistence, and seems more related to the KahaDB implementation used for the Temp storage area. > I shall attach a test jar, which is a executable jar, from which the issue can be replicated (I shall attach a zip of the source too - maven project) > The tests can be run as: > - java -classpath 5.4.1-deadlock-jar-with-dependencies.jar bbc.forge.domt.activemq.investigation.KahaDBTempStorageDeadlockReplication54Test > or > - java -classpath 5.4.1-deadlock-jar-with-dependencies.jar bbc.forge.domt.activemq.investigation.TempStorageDeadlockReplication54Test > These classes are also Unit Test Cases. > - Producer logs to producer.log > - Consumes log to consumer.log > - A Monitor thread just run in the background that detail the number of messages sent and consumed... logs to monitor.log > - tests write to the dir *{{target/activemq-data}}* > To disable limiting the temp storage add the System property *{{limit.temp=false}}*, i.e. > - java -Dlimit.temp=false -classpath 5.4.1-deadlock-jar-with-dependencies.jar bbc.forge.domt.activemq.investigation.TempStorageDeadlockReplication54Test > This seems to be a different/additional issue to AMQ-2475 > thanks in advance, let me know if you need any more information. > /dom -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.