GitHub user cshannon opened a pull request:

    https://github.com/apache/activemq/pull/127

    https://issues.apache.org/jira/browse/AMQ-5340

    A QueueBrowser no longer checks expiry on messages to prevent a
    browser from hanging in between the hasMoreElements check and actually
    getting a message.  This means that if messages were in the queue when
    the browser started it will receive messages even if they are now
    expired. Even though the browser will get the expired message, the
    broker will still expire it to prevent future access to it.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cshannon/activemq AMQ-5340

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq/pull/127.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #127
    
----
commit ebac24a95870fda9de760709ffb5533adaa5c7f7
Author: Christopher L. Shannon <[email protected]>
Date:   2015-07-06T02:11:23Z

    https://issues.apache.org/jira/browse/AMQ-5340
    
    A QueueBrowser no longer checks expiry on messages to prevent a
    browser from hanging in between the hasMoreElements check and actually
    getting a message.  This means that if messages were in the queue when
    the browser started it will receive messages even if they are now
    expired. Even though the browser will get the expired message, the
    broker will still expire it to prevent future access to it.
    
    Thanks to Henno Vermeulen for providing a test case.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to