Better logs snarfing

This commit is contained in:
alesapin 2021-04-03 15:17:28 +03:00
parent 62c287da65
commit 7d4415a2d0

View File

@ -135,8 +135,11 @@
(collect-traces test node)) (collect-traces test node))
(info node "Pid files doesn't exists")) (info node "Pid files doesn't exists"))
(kill-clickhouse! node test) (kill-clickhouse! node test)
(c/cd data-dir (if (cu/exists? coordination-data-dir)
(c/exec :tar :czf "coordination.tar.gz" "coordination"))) (do
(info node "Coordination files exists, going to compress")
(c/cd data-dir)
(c/exec :tar :czf "coordination.tar.gz" "coordination"))))
(let [common-logs [stderr-file (str logs-dir "/clickhouse-server.log") (str data-dir "/coordination.tar.gz")] (let [common-logs [stderr-file (str logs-dir "/clickhouse-server.log") (str data-dir "/coordination.tar.gz")]
gdb-log (str logs-dir "/gdb.log")] gdb-log (str logs-dir "/gdb.log")]
(if (cu/exists? (str logs-dir "/gdb.log")) (if (cu/exists? (str logs-dir "/gdb.log"))