Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 39037 invoked from network); 12 Sep 2008 18:39:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2008 18:39:29 -0000 Received: (qmail 68752 invoked by uid 500); 12 Sep 2008 18:39:26 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 68724 invoked by uid 500); 12 Sep 2008 18:39:26 -0000 Mailing-List: contact commits-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 commits@activemq.apache.org Received: (qmail 68715 invoked by uid 99); 12 Sep 2008 18:39:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 11:39:26 -0700 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 18:38:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A36F02388961; Fri, 12 Sep 2008 11:38:38 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r694771 - in /activemq/sandbox/kahadb/src: main/java/org/apache/kahadb/store/MessageDatabase.java test/resources/log4j.properties Date: Fri, 12 Sep 2008 18:38:38 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080912183838.A36F02388961@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: chirino Date: Fri Sep 12 11:38:37 2008 New Revision: 694771 URL: http://svn.apache.org/viewvc?rev=694771&view=rev Log: Opps had a infinite while loop that was adding entries into an array.. Would blow out our memory. This would get triggered when a topic messages were about to get deleted. Modified: activemq/sandbox/kahadb/src/main/java/org/apache/kahadb/store/MessageDatabase.java activemq/sandbox/kahadb/src/test/resources/log4j.properties Modified: activemq/sandbox/kahadb/src/main/java/org/apache/kahadb/store/MessageDatabase.java URL: http://svn.apache.org/viewvc/activemq/sandbox/kahadb/src/main/java/org/apache/kahadb/store/MessageDatabase.java?rev=694771&r1=694770&r2=694771&view=diff ============================================================================== --- activemq/sandbox/kahadb/src/main/java/org/apache/kahadb/store/MessageDatabase.java (original) +++ activemq/sandbox/kahadb/src/main/java/org/apache/kahadb/store/MessageDatabase.java Fri Sep 12 11:38:37 2008 @@ -977,7 +977,7 @@ ArrayList> deletes = new ArrayList>(); for (Iterator> iterator = sd.orderIndex.iterator(tx); iterator.hasNext();) { Entry entry = iterator.next(); - while (entry.getKey().compareTo(sequenceId) <= 0) { + if (entry.getKey().compareTo(sequenceId) <= 0) { // We don't do the actually delete while we are // iterating the BTree since // iterating would fail. Modified: activemq/sandbox/kahadb/src/test/resources/log4j.properties URL: http://svn.apache.org/viewvc/activemq/sandbox/kahadb/src/test/resources/log4j.properties?rev=694771&r1=694770&r2=694771&view=diff ============================================================================== --- activemq/sandbox/kahadb/src/test/resources/log4j.properties (original) +++ activemq/sandbox/kahadb/src/test/resources/log4j.properties Fri Sep 12 11:38:37 2008 @@ -18,7 +18,7 @@ # # The logging properties used during tests.. # -log4j.rootLogger=INFO, out +log4j.rootLogger=INFO, stdout log4j.logger.org.apache.activemq.spring=WARN