Commit f4e6271
committed
test(qwp): join the I/O worker before asserting it dead in blocked-send close test
close() returns when the worker counts shutdownLatch down inside ioLoop's
finally -- before the worker's exit tail and actual thread termination --
so Thread.isAlive() can be observably true for a scheduling beat after
close() returns (linux-x64 failure in build 252736). Quiescence is the
latch plus the cleanup-before-countdown ordering (already asserted), not
thread death; every sibling test already uses join-then-assert. Reproduced
by sleeping 200ms after the countdown: the old assert fails exactly like
CI; the joined assert passes under the same window.1 parent fee9903 commit f4e6271
1 file changed
Lines changed: 8 additions & 1 deletion
File tree
- core/src/test/java/io/questdb/client/test/cutlass/qwp/client/sf/cursor
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
99 | 106 | | |
100 | 107 | | |
101 | 108 | | |
| |||
0 commit comments