From b810384c62790efc434784c56c40718c75da40bc Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Sun, 8 Oct 2023 16:19:31 +0300 Subject: [PATCH] dump server longs on hang corrupt dump fuzzer test recently there are some incidents of hanged tests in the CI when we try to reproduce them, we get an assertion, not a hang. maybe the server logs will reveal some info. --- tests/integration/corrupt-dump-fuzzer.tcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/corrupt-dump-fuzzer.tcl b/tests/integration/corrupt-dump-fuzzer.tcl index 45705745e..132f8891c 100644 --- a/tests/integration/corrupt-dump-fuzzer.tcl +++ b/tests/integration/corrupt-dump-fuzzer.tcl @@ -160,6 +160,10 @@ foreach sanitize_dump {no yes} { set err [format "%s" $err] ;# convert to string for pattern matching if {[string match "*SIGTERM*" $err]} { puts "payload that caused test to hang: $printable_dump" + if {$::dump_logs} { + set srv [get_srv 0] + dump_server_log $srv + } exit 1 } # if the server terminated update stats and restart it