Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 67830 invoked from network); 26 Jan 2011 12:18:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jan 2011 12:18:13 -0000 Received: (qmail 2369 invoked by uid 500); 26 Jan 2011 12:18:13 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 2136 invoked by uid 500); 26 Jan 2011 12:18:09 -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 2118 invoked by uid 99); 26 Jan 2011 12:18:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jan 2011 12:18:07 +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; Wed, 26 Jan 2011 12:18:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0QCHh4a029425 for ; Wed, 26 Jan 2011 12:17:44 GMT Message-ID: <2240745.213741296044263919.JavaMail.jira@thor> Date: Wed, 26 Jan 2011 07:17:43 -0500 (EST) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-3160) ConcurrentModificationException in ActiveMQ Journal Checkpoint Worker In-Reply-To: <23155853.202621295995903513.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-3160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully resolved AMQ-3160. ----------------------------- Resolution: Fixed Fix Version/s: 5.5.0 sync added in r1063691 URL: http://svn.apache.org/viewvc?rev=1063691&view=rev > ConcurrentModificationException in ActiveMQ Journal Checkpoint Worker > --------------------------------------------------------------------- > > Key: AMQ-3160 > URL: https://issues.apache.org/jira/browse/AMQ-3160 > Project: ActiveMQ > Issue Type: Bug > Components: Message Store > Affects Versions: 5.4.2 > Environment: CentOS 5.2 > Reporter: Craig Condit > Assignee: Gary Tully > Priority: Minor > Fix For: 5.5.0 > > > There appears to be a race condition accessing Journal.getHashMap() from the ActiveMQ Journal Checkpoint Worker thread. Under high loads, we occasionally see the following exception in our logs: > Exception in thread "ActiveMQ Journal Checkpoint Worker" java.util.ConcurrentModificationException > at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) > at java.util.HashMap$EntryIterator.next(HashMap.java:834) > at java.util.HashMap$EntryIterator.next(HashMap.java:832) > at java.util.AbstractMap.putAll(AbstractMap.java:255) > at java.util.TreeMap.putAll(TreeMap.java:304) > at java.util.TreeMap.(TreeMap.java:162) > at org.apache.kahadb.journal.Journal.getFileMap(Journal.java:660) > at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:970) > at org.apache.activemq.store.kahadb.MessageDatabase.access$400(MessageDatabase.java:82) > at org.apache.activemq.store.kahadb.MessageDatabase$9.execute(MessageDatabase.java:599) > at org.apache.kahadb.page.Transaction.execute(Transaction.java:728) > at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:597) > at org.apache.activemq.store.kahadb.MessageDatabase$3.run(MessageDatabase.java:249) > This leads to the thread aborting prematurely. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.