Files
seaweedfs/test/volume_server/framework
Chris LuandClaude Opus 5.5 efcee4a186 test(volume_server): wait out a server's disk I/O before calling its SIGINT exit a hang (#13085)
* test(volume_server): wait out a server's disk I/O before calling its SIGINT exit a hang

stopProcess gave every server 10s to exit after SIGINT. On a CI runner
with a busy disk, the fsync in volume close can take longer than that:
the server is in uninterruptible sleep, not hung. Sample the server's
threads from /proc while waiting. Once one has been in D state, allow
up to a minute. A server that never touched the disk still fails at
10s, and the failure now lists its threads' states and wait channels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(volume_server): wait for the sleep child before checking its stop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(volume_server): reap the SIGINT-ignoring child if it never starts sleeping

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:29:59 -08:00
..