1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00
Leonid Fedorov 510bdd0e7b
ci: add backtraces for all CS processes after 4800secs (=1.20 hour) o… (#2903)
* ci: add backtraces for all CS processes after 4800secs (=1.20 hour) of test001.sh

---------

Co-authored-by: mariadb-AndreyPiskunov <andrey.piskunov@mariadb.com>
2023-07-18 20:31:44 +03:00

25 lines
397 B
Bash

#!/usr/bin/env sh
set -x
set -o pipefail
SCRIPT_LOCATION=$(dirname "$0")
LOG_PATH=$1
dump_stack ()
{
name=$1
echo "\nStack trace of $1"
eu-stack -p `pidof $name` -n 0 | tee ${LOG_PATH}/${name}_callstacks.txt
}
dump_stack "mariadbd"
dump_stack "workernode"
dump_stack "controllernode"
dump_stack "WriteEngineServer"
dump_stack "DDLProc"
dump_stack "DMLProc"
dump_stack "PrimProc"