Avi Flamholz created THRIFT-1820:
------------------------------------

             Summary: Python services don't transmit a TException to clients 
when one is raised.
                 Key: THRIFT-1820
                 URL: https://issues.apache.org/jira/browse/THRIFT-1820
             Project: Thrift
          Issue Type: Bug
          Components: Python - Compiler
    Affects Versions: 1.2
         Environment: Ubuntu, trunk Thrift.
            Reporter: Avi Flamholz


test/test.sh fails for all Python servers for this reason.

In ThriftTest.thrift, it says that implementation of the service should raise 
TException when the input to testException equals "TException". However, the 
generated Python code only forwards exceptions to clients if they are of the 
types declared in the service definition. If you raise an exception of another 
type, the server simply does not respond. This strikes me as a bug (at the very 
least, it is different from the behavior on C++), since the behavior is 
inconsistent across languages and the test cannot possibly pass when the server 
is written in Python.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to