Uploaded image for project: 'HornetQ'
  1. HornetQ
  2. HORNETQ-1458

totalIterator() fails to retrieve scheduled messages

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.4.5.Final
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      1. Create a Queue
      2. Put some scheduled messages in
      3. Get an instance of (JMS)QueueControl management component
      4. Count messages with a filter applied
      5. Returned value will be: (totalCount - scheduledCount)
      Show
      Create a Queue Put some scheduled messages in Get an instance of (JMS)QueueControl management component Count messages with a filter applied Returned value will be: (totalCount - scheduledCount)

      Description

      When I am trying to count messages in a queue with scheduled messages the (JMS)QueueControl fails to count messages when a filter is applied.

      Technical Detail

      After playing around for hours/days I've found out that the org.hornetq.core.server.impl.QueueImpl#totalIterator's returned TotalQueueIterator instance simply skips scheduled messages.

      I've applied a fix in my fork, if you feel so feel free to merge it.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                clebert.suconic Clebert Suconic
                Reporter:
                balint133 Balint Kurnasz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: