You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Klaus Stake (JIRA)" <ji...@apache.org> on 2011/08/29 16:14:37 UTC

[jira] [Created] (AMQ-3477) Side effect when you use QueueBrowser. Missing Message in subsequent calls.

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.5.0, 5.4.2, 5.4.1, 5.4.0
         Environment: Windows 7 64 Bit
            Reporter: Klaus Stake
         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

        

[jira] [Commented] (AMQ-3477) Side effect when you use QueueBrowser. Missing Message in subsequent calls.

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093201#comment-13093201 ] 

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

Would helpful if you could distill this into a JUnit test, as there's a lot of code in this sample.

> 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

        

[jira] [Closed] (AMQ-3477) Side effect when you use QueueBrowser. Missing Message in subsequent calls.

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish closed AMQ-3477.
-----------------------------

    Resolution: Incomplete

Closing until a test case that is available that can be used to validate the issue.

> 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

        

[jira] [Commented] (AMQ-3477) Side effect when you use QueueBrowser. Missing Message in subsequent calls.

Posted by "Klaus Stake (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093448#comment-13093448 ] 

Klaus Stake commented on AMQ-3477:
----------------------------------

Timothy, I am not sure if I understand you correctly. It is all stripped down to a JUnit test already. There is one single JUnit test class. This is JmsQueueIssueTest.java. This class has only one test method. 

All this was part of a big application and it took me one hour to distill this one JUnit test. 

Please be more precise and tell me what you want or need.

> 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

        

[jira] [Commented] (AMQ-3477) Side effect when you use QueueBrowser. Missing Message in subsequent calls.

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (AMQ-3477) Side effect when you use QueueBrowser. Missing Message in subsequent calls.

Posted by "Klaus Stake (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094494#comment-13094494 ] 

Klaus Stake commented on AMQ-3477:
----------------------------------

O.k. understood. Please give me some time. I may not be able to deliver your requested, cleaned unit test before next week.

> 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

        

[jira] [Updated] (AMQ-3477) Side effect when you use QueueBrowser. Missing Message in subsequent calls.

Posted by "Klaus Stake (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Klaus Stake updated AMQ-3477:
-----------------------------

    Attachment: apache-issue.tar.gz

> 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