Repository navigation
fix(kv-router): reject overflowing worker rank ranges - #16366
Merged
Merged
Conversation
Signed-off-by: bojiang-li <[email protected]>
bojiang-li
temporarily deployed
to
external_collaborator
October 13, 2026 23:17 — with
GitHub Actions
Inactive
bojiang-li
temporarily deployed
to
external_collaborator
October 13, 2026 23:17 — with
GitHub Actions
Inactive
Contributor
|
👋 Hi bojiang-li! Thank you for contributing to ai-dynamo/dynamo. Just a reminder: The 🚀 |
Contributor
jthomson04
approved these changes
Oct 14, 2026
jthomson04
left a comment
Contributor
There was a problem hiding this comment.
Thanks for splitting this out. Rejecting the overflowing range in prepare_worker, before any per-rank work, is the right place for it, and the two tests cover what matters: a bad record in a batch no longer poisons the rest, and a bad patch leaves the live worker and its bookings intact. LGTM.
Contributor
|
/ok to test c387a64 |
jthomson04
enabled auto-merge (squash)
October 14, 2026 00:13
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Reject a worker configuration when its data parallel start rank plus rank count overflows
u32. Validation runs before catalog or indexer changes, so an invalid batch entry cannot poison the partition and an invalid patch leaves the live worker and its booking intact.Details
This extracts the overflow check and its two regression tests from #15010, as requested in review. It can land independently of the worker lifecycle and shutdown changes.
On macOS arm64 with Rust 1.96.1, both regressions fail on current main before the fix. With the fix, the KV router library suite with
standalone-selection,standalone-slot-tracker,metricspasses: 1332 tests passed and 3 ignored. Strict Clippy for the library and tests, Rust formatting, and matching precommit hooks pass.Where should the reviewer start?
The validation in
prepare_workerinlib/kv-router/src/services/selection/core/workers.rs, followed by the batch and patch regression tests.Related Issues
Relates to #16070 and #15053. Split from #15010.
AI assistance was used for implementation and local validation.
Summary by CodeRabbit