Skip to content

fix(crosscheck): shorten allocator release locks - #345

Merged
ruby-dlee merged 1 commit into
mainfrom
cc-release-lock
Aug 26, 2026
Merged

fix(crosscheck): shorten allocator release locks#345
ruby-dlee merged 1 commit into
mainfrom
cc-release-lock

Conversation

@ruby-dlee

Copy link
Copy Markdown
Owner

Summary

  • fetch slow Azure inventory outside the global controller lock during capacity release
  • reacquire the lock and revalidate the exact reservation, fence, and cleanup receipt before committing
  • preserve idempotent concurrent release behavior

Live evidence

A three-run deployed smoke proved reserve inventory now overlaps, then a supported release held the controller lock long enough to time out the surviving admission. This patch closes that remaining lock hold.

Verification

  • bash tests/fm-worker-lifecycle.test.sh
  • python3 -m py_compile bin/fm-worker-lifecycle.py
  • bash -n tests/fm-worker-lifecycle.test.sh
  • git diff --check

@ruby-dlee
ruby-dlee merged commit c59f6d1 into main Aug 26, 2026
13 checks passed
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