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

Add prePocess postProcess and errorProcess to Server Context

    XMLWordPrintableJSON

Details

    Description

      I would like to modify TServerEventHandler to include preProcess, postProcess, and errorProcess capabilities.

       

      1. Add preProcess (rename current processContext)
      2. Add postProcess so that listeners can perform cleanup after each process (or count number of processes completed)
      3. Add errorProcess to report any errors while processing

      In particular the errorProcess is helpful, because Thrift includes some internal logic about which error messages are worthy of printing and which are not. This is logic that should be moved to the application layer as I want to be able to make that decision.

      https://github.com/apache/thrift/blob/master/lib/java/src/org/apache/thrift/server/TThreadPoolServer.java

      Attachments

        Issue Links

          Activity

            People

              belugabehr David Mollitor
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h