Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3646

OpenWire clients leave incorrect queue metrics when messages are sent to DLQ

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.21.0
    • None
    • None

    Description

      Messages getting sent to DLQ from an OpenWire client leaves incorrect queue metrics behind. "DeliveringSize"
      "DurableDeliveringSize"
      "DurablePersistentSize"
      "PersistentSize"

      All metrics above end up with negative values, even if the consumers are later disconnected or if the messages are retried and successfully consumed.

      I am able to reproduce this easily with an Artemis broker running "out-of-the-box"-config and using the following clients:
      https://github.com/erik-wramner/JmsTools   (AmqJmsConsumer.jar and AmqJmsProducer.jar)

      Example:

      # java -jar shaded-jars/AmqJmsProducer.jar -url "tcp://localhost:61616" -user USER -pw PASSWORD -queue TEST -count 100
      # java -jar shaded-jars/AmqJmsConsumer.jar -url "tcp://localhost:61616" -user USER -pw PASSWORD -queue TEST -count 1 -rollback 100 -t 10


      Using Artemis clients from the same tools results in no such issue. I am seeing the issue with other OpenWire clients also

      Br,

      Anton

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            AntonRoskvist Anton Roskvist
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                Slack

                  Issue deployment