ADR-0023 — A thread that expires under a live run is deleted
- Status: Accepted
- Date: 2026-11-13
- Supersedes: none
- Authors: project maintainers
Context
A run whose node takes longer than idle_for leaves its thread looking idle. The sweeper cannot
see a live run: put_writes only creates a head row if it is missing, it does not refresh one.
Decision
The sweeper will delete such a thread; the run's next put is refused loudly. idle_for should
exceed the longest run, and the documentation says so.
Alternatives considered
- Wait for the run — rejected: it needs a second clock column refreshed on every
put_writes, a write on a hot path that would stop head updates from being HOT.
Consequences
- Retention is what the operator set, and there is no silent partial state.
- A node that runs longer than
idle_forloses its turn.