Skip to content

Fix idempotency lock collisions under concurrent API requests - #31

Merged
DavidVoitenko merged 1 commit into
mainfrom
fix/idempotency-lock-collision
Sep 27, 2026
Merged

DavidVoitenko merged 1 commit into
mainfrom
fix/idempotency-lock-collision

Conversation

@DavidVoitenko

@DavidVoitenko DavidVoitenko commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Fix

Use a short-lived lock for each exact idempotency key. The previous 64-way hash stripe could serialize different keys by chance, causing a concurrent request to bypass the expected concurrency-limit response.

Verification

  • Existing concurrency-limit test and new forced-collision test pass under 20 distinct Python hash seeds.
  • 432 focused API, API v1, and job tests pass locally.
  • Full CI is running on this PR.

@DavidVoitenko
DavidVoitenko merged commit e171919 into main Sep 27, 2026
22 checks passed
@DavidVoitenko
DavidVoitenko deleted the fix/idempotency-lock-collision branch September 27, 2026 13:47
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