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 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to