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

Benoit Sigoure commented on THRIFT-2463:
----------------------------------------

Maybe the problem is completely different than what I thought.  I just saw this:
{code}
Test run #2:  (includes gen-py-default) Server=TSimpleServer,  Proto=accel,  
zlib=False,  SSL=True
Testing server TSimpleServer: /usr/bin/python ./TestServer.py 
--genpydir=gen-py-default --proto=accel --port=9090 --ssl TSimpleServer
Testing client: /usr/bin/python ./TestClient.py --genpydir=gen-py-default 
--proto=accel --port=9090 --ssl
ERROR:root:'NoneType' object has no attribute 'read'
Traceback (most recent call last):
  File "./../../lib/py/build/lib.linux-i686-2.7/thrift/server/TServer.py", line 
84, in serve
    self.processor.process(iprot, oprot)
  File "gen-py-default/ThriftTest/ThriftTest.py", line 995, in process
    (name, type, seqid) = iprot.readMessageBegin()
  File 
"./../../lib/py/build/lib.linux-i686-2.7/thrift/protocol/TBinaryProtocol.py", 
line 126, in readMessageBegin
    sz = self.readI32()
  File 
"./../../lib/py/build/lib.linux-i686-2.7/thrift/protocol/TBinaryProtocol.py", 
line 206, in readI32
    buff = self.trans.readAll(4)
  File 
"./../../lib/py/build/lib.linux-i686-2.7/thrift/transport/TTransport.py", line 
58, in readAll
    chunk = self.read(sz - have)
  File 
"./../../lib/py/build/lib.linux-i686-2.7/thrift/transport/TTransport.py", line 
159, in read
    self.__rbuf = StringIO(self.__trans.read(max(sz, self.__rbuf_size)))
AttributeError: 'NoneType' object has no attribute 'read'
Traceback (most recent call last):
  File "./TestServer.py", line 243, in <module>
    server.serve()
  File "./../../lib/py/build/lib.linux-i686-2.7/thrift/server/TServer.py", line 
90, in serve
    itrans.close()
  File 
"./../../lib/py/build/lib.linux-i686-2.7/thrift/transport/TTransport.py", line 
152, in close
    return self.__trans.close()
AttributeError: 'NoneType' object has no attribute 'close'
{code}

I haven't modified anything that could be causing this.  Weird.

> test/py/RunClientServer.py fails sometimes
> ------------------------------------------
>
>                 Key: THRIFT-2463
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2463
>             Project: Thrift
>          Issue Type: Bug
>          Components: Python - Library
>    Affects Versions: 0.9.1
>            Reporter: Benoit Sigoure
>
> This test is flaky in our CI system and the flakiness is also visible on 
> Jenkins (see examples of failed builds 
> [here|http://mail-archives.apache.org/mod_mbox/thrift-dev/201309.mbox/%3C1012268498.737.1378727603714.JavaMail.hudson@aegis%3E]
>  and [here|https://www.mail-archive.com/[email protected]/msg10124.html]).
> All the test cases of {{AcceleratedBinaryTest}} fail with this signature:
> {code}
> ======================================================================
> ERROR: testByte (__main__.AcceleratedBinaryTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./TestClient.py", line 85, in setUp
>     self.transport.open()
>   File 
> "./../../lib/py/build/lib.linux-i686-2.7/thrift/transport/TTransport.py", 
> line 149, in open
>     return self.__trans.open()
>   File "./../../lib/py/build/lib.linux-i686-2.7/thrift/transport/TSocket.py", 
> line 99, in open
>     message=message)
> TTransportException: Could not connect to localhost:9090
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to