activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (APLO-309) Messages can be counted multiple times in topic-metrics
Date Fri, 31 Jan 2014 15:04:10 GMT

     [ https://issues.apache.org/jira/browse/APLO-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hiram Chirino updated APLO-309:
-------------------------------

    Fix Version/s: 1.8

> Messages can be counted multiple times in topic-metrics
> -------------------------------------------------------
>
>                 Key: APLO-309
>                 URL: https://issues.apache.org/jira/browse/APLO-309
>             Project: ActiveMQ Apollo
>          Issue Type: Bug
>         Environment: apollo-99-trunk-20130221.165856-207
>            Reporter: Lionel Cons
>             Fix For: 1.8
>
>
> When using dsubs with wildcard subscriptions the messages are counted multiple times
in the aggregated statistics.
> With the following configuration:
>     <topic id="foo.1"/>
>     <topic id="foo.2"/>
>     <dsub id="bar" topic="foo.*"/>
> I send one message to /topic/foo.1.
> Using the REST API, I can get individual topic metrics:
>   'id' => 'foo.1',
>   'dsubs' => [
>     'bar'
>   ],
>   'metrics' => {
>     'dequeue_item_counter' => 0,
>     'enqueue_item_counter' => 1,
>     'queue_items' => 1,
>     'queue_size' => 134,
>   },
> So far so good if we assume that the queue_* metrics come from the attached dsub.
>   'id' => 'foo.2',
>   'dsubs' => [
>     'bar'
>   ],
>   'metrics' => {
>     'dequeue_item_counter' => 0,
>     'enqueue_item_counter' => 0,
>     'queue_items' => 1,
>     'queue_size' => 134,
>   },
> Even with no messages received, the "queue" is not empty.
> Querying the aggregated statistics (topic-metrics), I see:
>   'queue_items' => 2,
>   'queue_size' => 268,
> So this single message has been double counted.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message