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

Process panic in generated processor

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.13.0
    • Fix Version/s: None
    • Component/s: Go - Compiler
    • Labels:
      None

      Description

      Hello. In current version go generator doesn't provide functionality to handle panic in generated processor. You can pass defer function which will write TApplicationException to output protocol there https://github.com/apache/thrift/blob/0.13.0/compiler/cpp/src/thrift/generate/t_go_generator.cc#L2787.
       
      In current version on processor we need to process panic in custom server to send NewTApplicationException to clients and it is very uncomfortable.

      Thanks.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              voodoo Serhii
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: