Skip to content

fix(node): a slot stays busy while any lease's end still takes it down - #254

Merged
7schmiede merged 2 commits into
mainfrom
fix/node-slot-busy-count
Oct 23, 2026
Merged

7schmiede merged 2 commits into
mainfrom
fix/node-slot-busy-count

Conversation

@7schmiede

@7schmiede 7schmiede commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

slot_busy was a set. When a lane is leased again while the end of its previous lease still runs on its thread (Docker, measure_disk), the second lease's end cleared the mark while the first one's was under way. A purge (DELETE /v1/slots) then saw the slot free and removed it, and the first end wrote slot.json back: the kept lane its owner threw away came back.

Seen as a flaky a_lane_is_leased_admitted_and_synced (crates/devstack-node/tests/node.rs:493, check (ubuntu-latest) on #253): the test releases the first lease, waits only until the slot is no longer active, leases again, releases, purges.

  • slot_busy counts: slot_begin / slot_done; a purge still refuses a slot that is busy at all.
  • CHANGELOG: under [Unreleased], Fixed (after 0.21.0).

Tests: cargo test -p devstack-node --test node (3 runs) and --lib, clippy and fmt clean.

🤖 Generated with Claude Code

@7schmiede
7schmiede force-pushed the fix/node-slot-busy-count branch from 039317a to be546c8 Compare October 23, 2026 20:50
7schmiede and others added 2 commits October 23, 2026 23:36
`slot_busy` was a set: when a lane was leased again while the end of its
previous lease still ran (Docker, measuring its disk), the second lease's
end cleared the mark while the first one's was still under way. A purge
then removed the slot, and the first end wrote `slot.json` back: the slot
the owner threw away came back (`a_lane_is_leased_admitted_and_synced`,
check on ubuntu-latest). The mark is counted now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede force-pushed the fix/node-slot-busy-count branch from be546c8 to 9a078c8 Compare October 23, 2026 21:36
7schmiede added a commit that referenced this pull request Oct 23, 2026
`the_machine_reports_memory_and_cpu_time` read the host's CPU ticks 300 ms
apart and wanted them to have moved; on the macOS runner (a virtual
machine) they had not (`64558 -> 64558`, check on macos-14 in #254). It
now stays busy until they move, at least 300 ms and at most 5 s.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 0d5189b into main Oct 23, 2026
25 of 26 checks passed
@7schmiede
7schmiede deleted the fix/node-slot-busy-count branch October 23, 2026 21:59
@7schmiede 7schmiede mentioned this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant