Joe McDonnell has uploaded this change for review. ( http://gerrit.cloudera.org:8080/21611
Change subject: IMPALA-13230: Dump stacktrace for impala-shell when it receives SIGUSR1 ...................................................................... IMPALA-13230: Dump stacktrace for impala-shell when it receives SIGUSR1 It can be useful to get a stacktrace for a running impala-shell for debugging. This uses Python 3's faulthandler to handle the SIGUSR1, so it prints a stacktrace for all threads when it receives SIGUSR1. This does not implement an equivalent functionality for Python 2. Python 2 doesn't have the faulthandler library, and hand tests showed that sending SIGUSR1 to Python 2 impala-shell can interrupt network calls and abort a running query. Testing: - Added a test that verifies the stacktrace is printed and a running query succeeds. Change-Id: If7dae2686b65a1a4f02488abadca3b3c90e48bf1 --- M shell/impala_shell.py M tests/shell/test_shell_interactive.py 2 files changed, 26 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/11/21611/1 -- To view, visit http://gerrit.cloudera.org:8080/21611 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: If7dae2686b65a1a4f02488abadca3b3c90e48bf1 Gerrit-Change-Number: 21611 Gerrit-PatchSet: 1 Gerrit-Owner: Joe McDonnell <[email protected]>
