Skip to content

Commit b810384

Browse files
authored
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.
1 parent a2b0701 commit b810384

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/corrupt-dump-fuzzer.tcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ foreach sanitize_dump {no yes} {
160160
set err [format "%s" $err] ;# convert to string for pattern matching
161161
if {[string match "*SIGTERM*" $err]} {
162162
puts "payload that caused test to hang: $printable_dump"
163+
if {$::dump_logs} {
164+
set srv [get_srv 0]
165+
dump_server_log $srv
166+
}
163167
exit 1
164168
}
165169
# if the server terminated update stats and restart it

0 commit comments

Comments
 (0)