Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 41062 invoked from network); 4 Sep 2008 14:36:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2008 14:36:13 -0000 Received: (qmail 28102 invoked by uid 500); 4 Sep 2008 14:36:11 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 28080 invoked by uid 500); 4 Sep 2008 14:36:11 -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 28069 invoked by uid 99); 4 Sep 2008 14:36:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 07:36:11 -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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 14:35:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AEC35234C1CC for ; Thu, 4 Sep 2008 07:35:52 -0700 (PDT) Message-ID: <1518801857.1220538952714.JavaMail.jira@brutus> Date: Thu, 4 Sep 2008 07:35:52 -0700 (PDT) From: "Rob Davies (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-1918) AbstractStoreCursor.size gets out of synch with Store size and blocks consumers In-Reply-To: <261173565.1219933852621.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-1918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Davies resolved AMQ-1918. ----------------------------- Fix Version/s: 5.2.0 Resolution: Fixed Thanks Richard - I can't reproduce on Trunk - so I'm going to mark it fixed in 5.2 - if its still a problem - reopen and I'll investigate further > AbstractStoreCursor.size gets out of synch with Store size and blocks consumers > ------------------------------------------------------------------------------- > > Key: AMQ-1918 > URL: https://issues.apache.org/activemq/browse/AMQ-1918 > Project: ActiveMQ > Issue Type: Bug > Components: Message Store > Affects Versions: 5.1.0 > Reporter: Richard Yarger > Assignee: Rob Davies > Priority: Critical > Fix For: 5.2.0 > > Attachments: activemq.xml, testAMQMessageStore.zip > > > In version 5.1.0, we are seeing our queue consumers stop consuming for no reason. > We have a staged queue environment and we occasionally see one queue display negative pending message counts that hang around -x, rise to -x+n gradually and then fall back to -x abruptly. The messages are building up and being processed in bunches but its not easy to see because the counts are negative. We see this behavior in the messages coming out of the system. Outbound messages come out in bunches and are synchronized with the queue pending count dropping to -x. > This issue does not happen ALL of the time. It happens about once a week and the only way to fix it is to bounce the broker. It doesn't happen to the same queue everytime, so it is not our consuming code. > Although we don't have a reproducible scenario, we have been able to debug the issue in our test environment. > We traced the problem to the cached store size in the AbstractStoreCursor. > This value becomes 0 or negative and prevents the AbstractStoreCursor from retrieving more messages from the store. (see AbstractStoreCursor.fillBatch() ) > We have seen size value go lower than -1000. > We have also forced it to fix itself by sending in n+1 messages. Once the size goes above zero, the cached value is refreshed and things work ok again. > Unfortunately, during low volume times, it could be hours before n+1 messages are received, so our message latency can rise during low volume times.... :( > I have attached our broker config. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.