activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-3477) Side effect when you use QueueBrowser. Missing Message in subsequent calls.
Date Wed, 31 Aug 2011 12:32:10 GMT

    [ https://issues.apache.org/jira/browse/AMQ-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094479#comment-13094479
] 

Timothy Bish commented on AMQ-3477:
-----------------------------------

The sample uses a large amount of code from main that wraps the JMS API and makes it difficult
to determine if the issue is related to the wrapper code or to ActiveMQ.  A clean JMS Junit
test would make it easier to determine if the issue is in the broker code or not.

> Side effect when you use QueueBrowser. Missing Message in subsequent calls.
> ---------------------------------------------------------------------------
>
>                 Key: AMQ-3477
>                 URL: https://issues.apache.org/jira/browse/AMQ-3477
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker, JMS client, Message Store
>    Affects Versions: 5.4.0, 5.4.1, 5.4.2, 5.5.0
>         Environment: Windows 7 64 Bit
>            Reporter: Klaus Stake
>              Labels: QueueBrowser
>         Attachments: apache-issue.tar.gz
>
>
> Since 5.4.0 onwards there seems to be an errorneous side effect, when you use a QueueBrowser.
When you use the QueueBrowser, then the Consumer will miss one Message.
> I use the QueueBrowser to check if Messages are available and for peeking them.
> When I do this and call getConsumer().receive(noWaitTimeOut). Then the first message
in the queue seems to be ignored. I can see this message with the QueueBrowser, but cannot
receive this message anymore.
> I have tried this will all ActiveMQ versions from 4.0.1 up to 5.5.0. The last version
which works for me is 5.3.2.
> Attached you will find a complete Maven project to reproduce this error.
> You must change line 26 in the pom file for changing the ActiveMQ version. The attached
pom uses 5.3.2 which works. When you change the version to some later version, then you will
see a failing unit test.
> -- Klaus

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message