Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 15683 invoked from network); 27 Mar 2009 11:05:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2009 11:05:44 -0000 Received: (qmail 80789 invoked by uid 500); 27 Mar 2009 10:39:04 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 80716 invoked by uid 500); 27 Mar 2009 10:39:04 -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 80706 invoked by uid 99); 27 Mar 2009 10:39:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 10:39:04 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 10:39:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B7936234C04B for ; Fri, 27 Mar 2009 03:38:43 -0700 (PDT) Message-ID: <64254087.1238150323750.JavaMail.jira@brutus> Date: Fri, 27 Mar 2009 03:38:43 -0700 (PDT) From: "Yuri Ushakov (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1940) Negative queue size (reproducible) In-Reply-To: <615766311.1221635752619.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50862#action_50862 ] Yuri Ushakov commented on AMQ-1940: ----------------------------------- We have the same problem with 5.2.0. A queue, single consumer, single producer. We have -1 pending now, 1616 sent, 1617 received. > Negative queue size (reproducible) > ---------------------------------- > > Key: AMQ-1940 > URL: https://issues.apache.org/activemq/browse/AMQ-1940 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.2.0 > Environment: Found on Windows but reproduced under Linux > Reporter: Vadim Chekan > Assignee: Rob Davies > Priority: Critical > Fix For: 5.2.0 > > Attachments: Main.java, Picture 6.png, QueuePurgeTest.java.diff.txt > > > When you "purge" queue from web admin console, it zeroes queue message > counter. But if you have an active consumer at that time which > pre-fetched messages than your consumer will keep sending ack as it > process messages from its buffer. ActiveMQ will keep decrement counter > upon receiving each ack. So when consumer is done queue will show > MINUS. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.