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

Alan Conway reassigned QPID-409:
--------------------------------

    Assignee: Alan Conway

> Race condition in python client on 0-9 branch.
> ----------------------------------------------
>
>                 Key: QPID-409
>                 URL: https://issues.apache.org/jira/browse/QPID-409
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>            Reporter: Alan Conway
>         Assigned To: Alan Conway
>
> Sporadically, tests that deliberately cause connection errors are failing 
> (see below.) From the stack trace it seems that in some circumstances the 
> connection can be closed without setting the client.closed flag.
> The trunk is not affected because tearDown assumes the client will close the 
> connection.
> [EMAIL PROTECTED] python]$ ./run-tests -I cpp_failing.txt 
> tests.message.MessageTests.test_reference_unopened_on_close_error
> E
> ======================================================================
> ERROR: test_reference_unopened_on_close_error (tests.message.MessageTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/aconway/svn/qpid.0-9/python/qpid/testlib.py", line 192, in 
> tearDown
>     self.client.channel(0).connection_close(reply_code=200)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 304, in <lambda>
>     method = lambda *args, **kwargs: self.invoke(type, args, kwargs)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 256, in invoke
>     self.request(frame, self.queue_response, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 241, in request
>     self.requester.request(method, listener, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 146, in request
>     self.write(frame, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 200, in write
>     raise Closed(self.reason)
> Closed: Method(name=close, id=50) (503, 'Attempt to use non-existent 
> reference unopened', 120, 70) content = None
> ----------------------------------------------------------------------
> Ran 1 test in 0.539s

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

Reply via email to