Repository: impala
Updated Branches:
  refs/heads/master 09150f04c -> ba27b0381


Added dumping of minidumps to finalize.sh

Adds a step to bin/jenkins/finalize.sh that checks the log dir for any
minidumps, and if it finds any dumps the symbols and symbolizes the
minidump. The extracted stacks are saved as the same filename as the
dump, appended with '_dumped'

Change-Id: I1005378f996c2764012622a16a5d66bc83b6b4a1
Reviewed-on: http://gerrit.cloudera.org:8080/11490
Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/009b252e
Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/009b252e
Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/009b252e

Branch: refs/heads/master
Commit: 009b252eb63d8977a31a21d5590b926bbc88e0d7
Parents: 09150f0
Author: Thomas Tauber-Marshall <tmarsh...@cloudera.com>
Authored: Thu Sep 20 13:06:09 2018 -0700
Committer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Committed: Wed Sep 26 23:56:48 2018 +0000

----------------------------------------------------------------------
 bin/jenkins/finalize.sh | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/impala/blob/009b252e/bin/jenkins/finalize.sh
----------------------------------------------------------------------
diff --git a/bin/jenkins/finalize.sh b/bin/jenkins/finalize.sh
index ada4019..aaebb83 100755
--- a/bin/jenkins/finalize.sh
+++ b/bin/jenkins/finalize.sh
@@ -30,3 +30,18 @@ if [[ $(grep "Out of memory" 
"${IMPALA_HOME}"/logs_system/dmesg) ]]; then
   "${IMPALA_HOME}"/bin/generate_junitxml.py --phase finalize --step dmesg \
       --stdout "${IMPALA_HOME}"/logs_system/dmesg --error "Process was OOM 
killed."
 fi
+
+# Check for any minidumps and symbolize and dump them.
+LOGS_DIR="${IMPALA_HOME}"/logs
+if [[ $(find $LOGS_DIR -path "*minidumps*" -name "*dmp") ]]; then
+  SYM_DIR=$(mktemp -d)
+  dump_breakpad_symbols.py -b $IMPALA_HOME/be/build/latest -d $SYM_DIR
+  for minidump in $(find $LOGS_DIR -path "*minidumps*" -name "*dmp"); do
+    $IMPALA_TOOLCHAIN/breakpad-$IMPALA_BREAKPAD_VERSION/bin/minidump_stackwalk 
\
+        ${minidump} $SYM_DIR > ${minidump}_dumped 2> ${minidump}_dumped.log
+    "${IMPALA_HOME}"/bin/generate_junitxml.py --phase finalize --step 
minidumps \
+        --error "Minidump generated: $minidump" \
+        --stderr "$(head -n 100 ${minidump}_dumped)"
+  done
+  rm -rf $SYM_DIR
+fi

Reply via email to