You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sozu top waits up to 30 seconds for sleeping collectors on exit #1829
After one-frame rendering, run_top synchronously joins collectors. poll_loop uses uninterruptible sleep, and the certificate collector interval is 30 seconds. Exact-SHA CI took 30.07 seconds; the focused assertion measured 30.02 seconds before failure.
Evidence: exact-SHA CI timing plus focused red characterization. Exact-SHA CI: sozu_top_e2e passed 3 tests in 30.07s, with the real-master test spanning 30.04s. Focused candidate run exited 101 after 30.08s and reported 30.02s shutdown.
The issue does not depend on an arbitrary two-second product SLA: the observed latency equals CERTS_INTERVAL and comes from the join/sleep coupling. A two-second regression bound is defensible as twice the existing one-second bounded events read once sleeping collectors become wakeable.
Acceptance criteria: Wake sleeping collectors when shutdown is requested. Retain a process regression showing that exit does not wait for the 30-second polling cadence; derive any bound from the remaining bounded I/O waits.
Source checked at bd19a78e2831fa9b3bc099eff96359f1bd457958 on 2026-10-03:
Runtime evidence, where stated, was collected on 8ed38435c6e80dc374de421116d8b145f1e5ce6a; the reviewed mechanisms remain unchanged at the source revision above. Audit regression tests are prepared locally and are not yet published on main.
Activity
fix(top): wake sleeping collectors when sozu top shuts down (sozu-pro…