qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-6117) [08..091] Race condition during close causes sporadic test failure
Date Thu, 25 Sep 2014 14:40:34 GMT

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

ASF subversion and git services commented on QPID-6117:
-------------------------------------------------------

Commit 1627553 from [~k-wall] in branch 'qpid/trunk'
[ https://svn.apache.org/r1627553 ]

QPID-6117: [Python Client 0-8..0-9] Ignore socket.error ENOTCONN when trying to shutdown a
socket to prevent spurious exception when socket closed by peer

> [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
>
> 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


Mime
View raw message