You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/04/17 12:26:00 UTC

[jira] [Commented] (AMQ-6947) Queue pending message count can go negative on duplicates

    [ https://issues.apache.org/jira/browse/AMQ-6947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16440804#comment-16440804 ] 

ASF subversion and git services commented on AMQ-6947:
------------------------------------------------------

Commit 021c82859cf4361eb31b21fdbac17655ae9e368d in activemq's branch refs/heads/master from [~cshannon]
[ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=021c828 ]

AMQ-6947 - Make sure counters are updated correct on message drop

Only update metrics counters when message is removed from the
pagedInMessages list which is important to check in case of duplicates


> Queue pending message count can go negative on duplicates
> ---------------------------------------------------------
>
>                 Key: AMQ-6947
>                 URL: https://issues.apache.org/jira/browse/AMQ-6947
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Apollo, Broker
>    Affects Versions: 5.15.3
>            Reporter: Christopher L. Shannon
>            Assignee: Christopher L. Shannon
>            Priority: Minor
>             Fix For: 5.15.4
>
>
> I have a found an edge case where the destination statistics counter on a Queue can go negative if there are duplicate messages (which should be rare).  The issue is the statistic is decremented but should not be because the message was already dropped since there was a duplicate.  Also, another statistic is improperly incremented which is the dequeue counter.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)