Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1820

Python services don't transmit a TException to clients when one is raised.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.1
    • None
    • Python - Compiler
    • None
    • Ubuntu, trunk Thrift.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              flamholz Avi Flamholz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: