mirror of
https://github.com/apache/impala.git
synced 2026-01-08 03:02:48 -05:00
IMPALA-6271 added LOG statements to some signal handlers and an exit() call to a different signal handler. These functions are not async-signal safe. The fixes are: * Use the write system call directly. I tried using glog's RAW_LOG functionality but had major issues getting it to work. * Call _exit() directly instead of exit() so that static destructors are not run. This is the same default behaviour as SIGTERM. This wans't necessary to prevent this specific crash. Testing: Could reproduce the crash by looping tests/custom_cluster/test_local_catalog.py until a minidump was produced. After this fix it did not reproduce after looping for a few hours. Ran exhaustive build. Change-Id: I52037d6510b9b34ec33d3a8b5492226aee1b9d92 Reviewed-on: http://gerrit.cloudera.org:8080/11777 Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Reviewed-by: Tim Armstrong <tarmstrong@cloudera.com>