activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lionel Cons (JIRA)" <j...@apache.org>
Subject [jira] [Created] (APLO-309) Messages can be counted multiple times in topic-metrics
Date Fri, 15 Mar 2013 10:46:14 GMT
Lionel Cons created APLO-309:
--------------------------------

             Summary: 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


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message