You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org> on 2009/09/30 17:59:23 UTC

[jira] Created: (QPID-2122) message age alert / notification only checks the age of the first message in the QueueEntryList

message age alert / notification only checks the age of the first message in the QueueEntryList
-----------------------------------------------------------------------------------------------

                 Key: QPID-2122
                 URL: https://issues.apache.org/jira/browse/QPID-2122
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker, Java Management : JMX Interface
    Affects Versions: M4, M3, M2.1, 0.5
            Reporter: Robbie Gemmell
            Priority: Minor


Message age alert / notification only checks the age of the first message in the queue entry list. 

The housekeeping thread checks message status for each queue. During the process it iterates over given queue performing a notification check on each message (if it has not expired), however the actual notification check for message age ignores the message provided and simply requests the oldest message arrival time from the queue, then checks whether this time was before the limit imposed by subtracting the threshold time from the current time. The queue provides this time by getting the message at the head of the QueueEntryList and checking its arrival time. Moving or copying messages between queues using the management interfaces is one example of where the time provided by such a check may not actually be the arrival time of the oldest message on the queue, as moved/copied messages are enqueued at the end of the queue but may infact be older than those at the beginning of the queue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org