[8.6] Fixed an edge case where a shard that hasn't yet received cluster topology could reject internal queries with 'Query requires unavailable slots' during the first moments after server startup - [MOD-13828]#8395
Merged
Conversation
4 tasks
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 8.6 #8395 +/- ##
=======================================
Coverage 83.82% 83.83%
=======================================
Files 367 367
Lines 55559 55576 +17
Branches 14302 14319 +17
=======================================
+ Hits 46574 46593 +19
+ Misses 8824 8822 -2
Partials 161 161
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
GuyAv46
approved these changes
Feb 16, 2026
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.



Description
Backport of #8388 to
8.6.Describe the changes in the pull request
Fix an edge case where some shard doesn't know the topology yet, but has to reply to some internal query from another shard. We prefer the shard to accept the request rather than fail with "Query requires unavailable slots". The uninitialized shard cannot be a coordinator until it knows the topology, and this change doesn't affect that.
Main objects this PR modified
Mark if applicable
Release Notes
If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.
Note
Medium Risk
Changes the default slot-availability behavior at startup, which can affect whether internal queries are accepted/rejected until topology is received. While scoped to slots tracking, it touches correctness-critical routing/availability logic and relies on updated initialization assumptions.
Overview
Fixes an early-startup edge case by changing
SlotsTrackerinitialization to treat a shard with no known cluster topology as owning the full slot range (0..16383), avoiding transient "unavailable slots" rejections.This removes the
const fn/derivedDefaultpath (adds a manualDefaultimpl) and updates unit tests to explicitly simulate import/no-local-slots scenarios viaset_local_slots(&[]). The FFI thread-local tracker initialization is adjusted accordingly to use the non-const constructor.Written by Cursor Bugbot for commit 00aa595. This will update automatically on new commits. Configure here.