Skip to content

sozu top waits up to 30 seconds for sleeping collectors on exit #1829

Closed

Description

@FlorentinDUBOIS

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

  1. added a commit that references this issue on Oct 4, 2026
    e54f953
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions