Skip to content

fix(master): pay back the claiming-pool gauge when the poller is aborted - #360

Merged
beinan merged 1 commit into
lance-format:mainfrom
beinan:fix/claiming-gauge-cancel-safe
Oct 8, 2026
Merged

beinan merged 1 commit into
lance-format:mainfrom
beinan:fix/claiming-gauge-cancel-safe

Conversation

@beinan

@beinan beinan commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Part of #333. Closes the claiming cancellation gap noted in review round 4 (credit: production review).

The claiming gauge was incremented before the etcd claim and decremented after. A poller aborted mid-claim (drain, shutdown, test teardown) skipped the decrement. Same GaugeHold Drop guard as #353, held across the await.

Clippy -D warnings, fmt clean; poller test passes against etcd.

🤖 Generated with Claude Code

lance-format#348 incremented claiming before the etcd claim and decremented after.
A poller aborted mid-claim (drain, shutdown, test teardown) skipped the
decrement, leaving the gauge elevated. Hold the decrement in the same
Drop guard lance-format#353 introduced for the running gauge.

Refs lance-format#333. Review round 4, claiming-cancel gap.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@beinan
beinan merged commit 67eeb82 into lance-format:main Oct 8, 2026
11 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