qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wall (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPID-6117) [08..091] Race condition during close causes sporadic test failure
Date Thu, 25 Sep 2014 13:26:33 GMT
Keith Wall created QPID-6117:

             Summary: [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
            Reporter: Keith Wall

Running the Python suit (08..091) on a Mac shows a sporadic test failure with the following
stack trace:

Error during teardown:  Traceback (most recent call last):
    File "./qpid-python-test", line 340, in run
    File "/Users/keith/src/qpid/qpid/python/qpid/testlib.py", line 77, in tearDown
    File "/Users/keith/src/qpid/qpid/python/qpid/client.py", line 129, in close
    File "/Users/keith/src/qpid/qpid/python/qpid/connection08.py", line 63, in close
    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

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

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

View raw message