James E. King, III created THRIFT-4515:

             Summary: Gracefully shutdown cross-test servers to fully test 
                 Key: THRIFT-4515
                 URL: https://issues.apache.org/jira/browse/THRIFT-4515
             Project: Thrift
          Issue Type: Improvement
          Components: Test Suite
    Affects Versions: 0.11.0
            Reporter: James E. King, III

The cross test suite kills the server process after the client is done, see 
test/crosstest/run.py:_scoped, the process is killed.  In the C++ TestServer 
code at the end of main it sits in a TIGHT while loop unnecessarily causing CPU 
usage and slowing down the system.

There should be a signal (like SIGUSR1) that each server waits for, and on 
receiving that signal stops the thrift server cleanly.

This message was sent by Atlassian JIRA

Reply via email to