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

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.1
    • Fix Version/s: None
    • Component/s: Python - Compiler
    • Labels:
      None
    • Environment:

      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

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

                Dates

                • Created:
                  Updated: