[ 
https://issues.apache.org/jira/browse/QPID-2136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross resolved QPID-2136.
-------------------------------

       Resolution: Won't Fix
    Fix Version/s: JIRA Cleanup
         Assignee: Rafael H. Schloming

This issue has not been updated in more than a year.  We've reviewed
it and decided to close it, as part of an effort to keep our issue
database clean and current.  If this issue is still affecting you,
please reopen it.

See https://issues.apache.org/jira/browse/QPID-4585 for more
information.

                
> tests_0-9.QueueTests.test_unbind_* reuses exclusive queues
> ----------------------------------------------------------
>
>                 Key: QPID-2136
>                 URL: https://issues.apache.org/jira/browse/QPID-2136
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Test Suite
>            Reporter: Michael Bridgen
>            Assignee: Rafael H. Schloming
>             Fix For: JIRA Cleanup
>
>
> The test_unbind_{direct, topic, fanout, headers} tests all go through the 
> method unbind_test, which declares two exclusive queues.  Since they are 
> exclusive, and not explicitly deleted after the test, the next such test can 
> fail with a "405 RESOURCE_LOCKED".
> In AMQP 0-9 the exclusive queues should be deleted when the connection is 
> closed (which happens in TestBase.tearDown).  I would prefer not to rely on 
> this though, since there is a race between the server deleting the queue and 
> the next test running.
> The solution is to register the queues to be explicitly deleted after the 
> test is run:
> Index: tests_0-9/queue.py
> ===================================================================
> --- tests_0-9/queue.py  (revision 822337)
> +++ tests_0-9/queue.py  (working copy)
> @@ -40,8 +40,8 @@
>          #bind two queues and consume from them
>          channel = self.channel
> -        channel.queue_declare(queue="queue-1", exclusive="True")
> -        channel.queue_declare(queue="queue-2", exclusive="True")
> +        self.queue_declare(queue="queue-1", exclusive="True")
> +        self.queue_declare(queue="queue-2", exclusive="True")
>          channel.basic_consume(queue="queue-1", consumer_tag="queue-1",
> no_ack=True)
>          channel.basic_consume(queue="queue-2", consumer_tag="queue-2",
> no_ack=True)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to