You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Justin Ross (JIRA)" <ji...@apache.org> on 2015/03/19 13:01:38 UTC

[jira] [Commented] (QPID-6117) [08..091] Race condition during close causes sporadic test failure

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

Justin Ross commented on QPID-6117:
-----------------------------------

Bump.  This one looks (sort of) resolved.  True?

> [08..091] Race condition during close causes sporadic test failure
> ------------------------------------------------------------------
>
>                 Key: QPID-6117
>                 URL: https://issues.apache.org/jira/browse/QPID-6117
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>         Environment: Python 2.7.5 (default, Mar  9 2014, 22:15:05)
> Mac OS X Darwin 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
>            Reporter: Keith Wall
>            Assignee: Alex Rudyy
>             Fix For: 0.31
>
>
> Running the Python suit (08..091) on a Mac shows a sporadic test failure with the following stack trace:
> {noformat}
> Error during teardown:  Traceback (most recent call last):
>     File "./qpid-python-test", line 340, in run
>       phase()
>     File "/Users/keith/src/qpid/qpid/python/qpid/testlib.py", line 77, in tearDown
>       self.client.close()
>     File "/Users/keith/src/qpid/qpid/python/qpid/client.py", line 129, in close
>       self.socket.close()
>     File "/Users/keith/src/qpid/qpid/python/qpid/connection08.py", line 63, in close
>       self.sock.shutdown(SHUT_RDWR)
>     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 224, in meth
>       return getattr(self._sock,name)(*args)
>   error: [Errno 57] Socket is not connected
> {noformat}
> The issue is a race between the client and server side.   The unlucky timing (causing the stack trace) is where the server side closes the socket first, meaning the client's attempt to shutdown down the socket throws error 57.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org