You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org> on 2008/10/07 11:33:44 UTC

[jira] Created: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

ResetMessageListenerTest testAsynchronousRecieve test failure
-------------------------------------------------------------

                 Key: QPID-1320
                 URL: https://issues.apache.org/jira/browse/QPID-1320
             Project: Qpid
          Issue Type: Bug
          Components: Java Tests
    Affects Versions: M3
            Reporter: Martin Ritchie


This test has failed a number of times these were the failure messages:

junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
org.apache.qpid.client.ResetMessageListenerTest


junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)


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


[jira] Commented: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639078#action_12639078 ] 

Aidan Skinner commented on QPID-1320:
-------------------------------------

First attachment is for the second exception thrown. 

> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>            Assignee: Aidan Skinner
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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


[jira] Updated: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aidan Skinner updated QPID-1320:
--------------------------------

    Status: Ready To Review  (was: In Progress)

> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>            Assignee: Aidan Skinner
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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


[jira] Assigned: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aidan Skinner reassigned QPID-1320:
-----------------------------------

    Assignee: Martin Ritchie  (was: Aidan Skinner)

Removed random bad test, try new one. Please review.

> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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


[jira] Assigned: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aidan Skinner reassigned QPID-1320:
-----------------------------------

    Assignee: Aidan Skinner

> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>            Assignee: Aidan Skinner
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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


[jira] Assigned: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aidan Skinner reassigned QPID-1320:
-----------------------------------

    Assignee: Martin Ritchie  (was: Aidan Skinner)

Think this should addresss all of your comments.

> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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


[jira] Updated: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie updated QPID-1320:
---------------------------------

    Assignee: Aidan Skinner  (was: Martin Ritchie)
      Status: Open  (was: Ready To Review)

The test doesn't test resetting of the message listener.

Ok so the only reason I can see for having the second consumer was to ensure that changing the message listener had no ill effects there. Agreed it is probabably not required and just makes the test more difficult to understand.

I think the javadoc description of the test need tidied up now that QPID-293 has been resolved.

I think this test needs a description of what it is trying to achieve as what is currently happening is:
creation consumers connnection
send 6 messages
set a message listener 
change message listener
send 6 more messages
start consumer session
receive all 8 messages (first 6 + 2 from second batch)
then exit verifying we received 2 from first batch and 2 from second batch.

What needs to happen is something like
Create consumer
send messages
set messageListener
start consumer session
Check that they arrive (not both tests didn't check the return from the await! they need to)
Stop connection

send more messages
<Arguably these two opperations could be tested in either operation>
change message listener
check that they arrive as expected.

First ML should only check for rank=first messages for countdown
Second ML should only check rank=second messages for countdown
if a first message arrives in the second ML then it is a failure as the first ML should have consumsed all 6 msgs before we were allowed to continue.





> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>            Assignee: Aidan Skinner
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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


[jira] Assigned: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie reassigned QPID-1320:
------------------------------------

    Assignee: Aidan Skinner  (was: Martin Ritchie)

> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>            Assignee: Aidan Skinner
>             Fix For: M4
>
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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


[jira] Updated: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aidan Skinner updated QPID-1320:
--------------------------------

    Attachment: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out

> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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


[jira] Updated: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aidan Skinner updated QPID-1320:
--------------------------------

    Status: Ready To Review  (was: In Progress)

> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>            Assignee: Aidan Skinner
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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


[jira] Resolved: (QPID-1320) ResetMessageListenerTest testAsynchronousRecieve test failure

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie resolved QPID-1320.
----------------------------------

       Resolution: Fixed
    Fix Version/s: M4

Looks good.

> ResetMessageListenerTest testAsynchronousRecieve test failure
> -------------------------------------------------------------
>
>                 Key: QPID-1320
>                 URL: https://issues.apache.org/jira/browse/QPID-1320
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M3
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>             Fix For: M4
>
>         Attachments: TEST-org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve.out
>
>
> This test has failed a number of times these were the failure messages:
> junit.framework.AssertionFailedError: Second batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:257)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220,
> org.apache.qpid.client.ResetMessageListenerTest
> junit.framework.AssertionFailedError: First batch of messages not received correctly expected:<0> but was:<1>  
> at org.apache.qpid.client.ResetMessageListenerTest.testAsynchronousRecieve(ResetMessageListenerTest.java:256)  
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:186)  
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:220)

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