activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-6947) Queue pending message count can go negative on duplicates
Date Tue, 17 Apr 2018 12:27:00 GMT

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

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

Commit 1fe096cb2a3ec03dbf5a7aab05c0960f8c739339 in activemq's branch refs/heads/activemq-5.15.x
from [~cshannon]
[ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=1fe096c ]

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

(cherry picked from commit 021c82859cf4361eb31b21fdbac17655ae9e368d)


> 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)

Mime
View raw message