qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Ritchie (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Created: (QPID-2390) Expose Queue Purge functionalitiy for test clean up.
Date Fri, 05 Feb 2010 15:19:29 GMT
Expose Queue Purge functionalitiy for test clean up.
----------------------------------------------------

                 Key: QPID-2390
                 URL: https://issues.apache.org/jira/browse/QPID-2390
             Project: Qpid
          Issue Type: New Feature
          Components: Java Client, Java Performance Tests, Java Tests
    Affects Versions: 0.6
            Reporter: Martin Ritchie
            Priority: Minor


To aid in cleaning up of the tests in the event of failure exposing the queue purge method
on AMQSession, as we do with queue delete, will give us a clean and easy way to empty a given
queue. 

This approach is more favourable than simply receiving the messages from the queue for two
reasons.
1) The test may be faiiing  because it cannot receive the messages fast enough. This may prevent
a successful clean by simply calling receive till null.
2) We can guarrantee that the queue will be emptied when the purge returns.

By exposing it we are adding a new method to maintain, though this is an AMQP feature and
so arguably we should already be exposing it. System testing for this new feature would be
required.

-- 
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:dev-subscribe@qpid.apache.org


Mime
View raw message