[ 
https://issues.apache.org/jira/browse/QPID-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834555#action_12834555
 ] 

Rajith Attapattu commented on QPID-1575:
----------------------------------------

The testActiveTTL fails due to the c++ broker not cleaning stale messages in 
the queue.

The C++ broker removes stales messages using the following strategies
a) If a consumer requests a messages, it checks the head and discards it if 
it's expired
b) Runs the queue cleaner thread every x (defaults to 5 mins) secs and discards 
stale messages.

I enabled the TimeToLiveTest (by commenting it out) and reduced the 
--queue-purge-interval to 1 sec.
This may interfere with other tests. If that happens I will try to increase 
above interval and the test timeout and see if we could get by.

This modification is checked in rev 910777 of the Qpid trunk

> TimeToLiveTest fails against C++ broker
> ---------------------------------------
>
>                 Key: QPID-1575
>                 URL: https://issues.apache.org/jira/browse/QPID-1575
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, Java Client
>    Affects Versions: M4, 0.5
>            Reporter: Aidan Skinner
>            Assignee: Rajith Attapattu
>         Attachments: QPID-1575.tar.gz
>
>
> testPassiveTTL and testActiveTTL both fail when run against the C++ broker:
> junit.framework.AssertionFailedError: Final message has incorrect TTL. 
> expected:<0> but was:<1000>
> at 
> org.apache.qpid.server.queue.TimeToLiveTest.testPassiveTTL(TimeToLiveTest.java:107)
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:188)
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:222)
> and
> Messages not automatically expired: expected:<0> but was:<50>
> junit.framework.AssertionFailedError: Messages not automatically expired: 
> expected:<0> but was:<50>
> at 
> org.apache.qpid.server.queue.TimeToLiveTest.testActiveTTL(TimeToLiveTest.java:156)
> at org.apache.qpid.test.utils.QpidTestCase.runBare(QpidTestCase.java:188)
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:222)

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to