You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Senaka Fernando (JIRA)" <qp...@incubator.apache.org> on 2008/05/02 10:38:55 UTC

[jira] Created: (QPID-1004) org.apache.qpid.test.testcases.TTLTest Fails

org.apache.qpid.test.testcases.TTLTest Fails
--------------------------------------------

                 Key: QPID-1004
                 URL: https://issues.apache.org/jira/browse/QPID-1004
             Project: Qpid
          Issue Type: Bug
          Components: Java Tests
            Reporter: Senaka Fernando


org.apache.qpid.test.testcases.TTLTest Fails with javax.jms.IllegalStateException("A listener has already been set."); in acquireReceiving() method of BasicMessageConsumer

Regards,
Senaka

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


[jira] Commented: (QPID-1004) org.apache.qpid.test.testcases.TTLTest Fails

Posted by "Arnaud Simon (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595174#action_12595174 ] 

Arnaud Simon commented on QPID-1004:
------------------------------------

Note: I have excluded this test. As TTL is already tested we may even think about getting rid of this test. 

> org.apache.qpid.test.testcases.TTLTest Fails
> --------------------------------------------
>
>                 Key: QPID-1004
>                 URL: https://issues.apache.org/jira/browse/QPID-1004
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>            Reporter: Senaka Fernando
>
> org.apache.qpid.test.testcases.TTLTest Fails with javax.jms.IllegalStateException("A listener has already been set."); in acquireReceiving() method of BasicMessageConsumer
> Regards,
> Senaka

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


[jira] Commented: (QPID-1004) org.apache.qpid.test.testcases.TTLTest Fails

Posted by "Senaka Fernando (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593750#action_12593750 ] 

Senaka Fernando commented on QPID-1004:
---------------------------------------

And, interestingly it seems that the TTLTest is also a bit messy.

boolean timedOut = false; on line 125, is never set to true, resulting in a loop that will be infinite unless an exception is thrown, which will halt this test.

This suggests that this test is not properly implemented.

Regards,
Senaka

> org.apache.qpid.test.testcases.TTLTest Fails
> --------------------------------------------
>
>                 Key: QPID-1004
>                 URL: https://issues.apache.org/jira/browse/QPID-1004
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>            Reporter: Senaka Fernando
>
> org.apache.qpid.test.testcases.TTLTest Fails with javax.jms.IllegalStateException("A listener has already been set."); in acquireReceiving() method of BasicMessageConsumer
> Regards,
> Senaka

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


[jira] Commented: (QPID-1004) org.apache.qpid.test.testcases.TTLTest Fails

Posted by "Arnaud Simon (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595172#action_12595172 ] 

Arnaud Simon commented on QPID-1004:
------------------------------------

There are two main issues with this test: 
1) the consumer is created as asynchronous and cannot therefore be used for synchronously consuming messages (this is the reason why this test is failing actually) 
2) this test does not test the current java broker TTL semantics as messages can only expire when they are enqueued. Because messages are pre-fetched,  for testing the current implementation we need to create the consumer after having produced the messages. 

More generally we need to document how TTL is handled and think about optionally expire pre-fetched messages. 



> org.apache.qpid.test.testcases.TTLTest Fails
> --------------------------------------------
>
>                 Key: QPID-1004
>                 URL: https://issues.apache.org/jira/browse/QPID-1004
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>            Reporter: Senaka Fernando
>
> org.apache.qpid.test.testcases.TTLTest Fails with javax.jms.IllegalStateException("A listener has already been set."); in acquireReceiving() method of BasicMessageConsumer
> Regards,
> Senaka

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


[jira] Updated: (QPID-1004) org.apache.qpid.test.testcases.TTLTest Fails

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

Marnie McCormack updated QPID-1004:
-----------------------------------

    Fix Version/s:     (was: M4)

> org.apache.qpid.test.testcases.TTLTest Fails
> --------------------------------------------
>
>                 Key: QPID-1004
>                 URL: https://issues.apache.org/jira/browse/QPID-1004
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>            Reporter: Senaka Fernando
>
> org.apache.qpid.test.testcases.TTLTest Fails with javax.jms.IllegalStateException("A listener has already been set."); in acquireReceiving() method of BasicMessageConsumer
> Regards,
> Senaka

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