You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by "Hiram Chirino (JIRA)" <ji...@apache.org> on 2014/01/31 16:04:10 UTC
[jira] [Updated] (APLO-309) Messages can be counted multiple times
in topic-metrics
[ 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)