Skip to content
Snippets Groups Projects
Commit fb69a2d7 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Vladimir Davydov
Browse files

test: fix flaky 'sigterm during box.cfg' test

The test sends SIGTERM to the process while it is writing a
snapshot. Using `g.server.process:kill('TERM')`.

On a next line the test was doing `g.server:stop()` which also
sends SIGTERM. Apparently, the second SIGTERM sometimes killed the
server immediately.

It usually happened inside fiber_free(). Sometimes right after the
file tt_exit_file.txt.inprogress was created but before it was
renamed to tt_exit_file.txt.

The reason is in signal_free() being called quite early. After
that any signal becomes fatal and is not caught by the handlers.

The patch also increases on-shutdown timeout not to depend on it
for certain. Although it shouldn't be a problem right now.

Follow-up #7743

NO_DOC=test
NO_CHANGELOG=test
parent 91fd360c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment