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.
This commit is contained in:
Oran Agra 2023-10-08 16:19:31 +03:00 committed by GitHub
parent a2b0701d2c
commit b810384c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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