Skip to content

Graceful shutdown during initial blacklist sync counts a false drift window #1321

Closed

Description

@yigitdot

Split out of #1315 review (#1283 follow-up). Minor.

rescan returns clean = false when shutdown.is_cancelled(). While the initial-sync gate is still pending, BlacklistSink::on_tick_complete (crates/node/src/blacklist_watcher.rs:221) turns that into a bail, which fires on_backoff, which bumps blacklist_watcher_restarts_total and stamps down_since.

So a node restarted before its first blacklist sync completes emits restarts_total = 1 and a climbing down_seconds in its final scrapes — reporting an RPC drift window when what actually happened was an orderly shutdown. Pollutes exactly the signal #1315 added, and on a fleet doing rolling restarts the false positives are systematic rather than rare.

Cheap fix: do not bail when the shutdown token is cancelled — a cancelled re-scope is not a failed one.

Found by multi-agent review of #1315.

Activity

  1. added
    kind:bug
    rust
    prio:low
    on Jul 19, 2026
  2. self-assigned this
    on Jul 19, 2026
  3. thiras commented on Jul 19, 2026

    @thiras
    Contributor

    Resolved by #1325 (merged to main as 0b5ce92), which addressed the false drift window on graceful shutdown during initial blacklist sync as part of the uniform six-watcher observability batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:bugprio:lowrust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions