IMPALA-5291: avoid calling global destructors in statestore-test
The workaround implemented by this patch is to exit the process using
_exit(), which does not run global destructors.
The "proper" solution would be either to change Thrift so that the
destructors are not run unnecessarily on process teardown, or to extend
the statestore services and clients to allow stopping them. It seems the
complexity of neither is justified.
Was able to reproduce the bug by running statestore-test in a loop.
After the fix it was not reproducible.
Reviewed-by: Matthew Jacobs <firstname.lastname@example.org>
Tested-by: Impala Public Jenkins