-
Notifications
You must be signed in to change notification settings - Fork 22
[MOD-11910]Fix thread count report in SVS Tiered index debug info & [MOD-11913] Increase threads' reservation timeout #808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #808 +/- ##
=======================================
Coverage 96.86% 96.86%
=======================================
Files 126 126
Lines 7739 7740 +1
=======================================
+ Hits 7496 7497 +1
Misses 243 243 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… index limit addVector: should only be called with numThreads=1 limit addvectors: can be called with n ==1 only when numThreads ==1 enforce this change in tiered tests: set the num threads in the index to 1
alonre24
previously approved these changes
Oct 20, 2025
alonre24
approved these changes
Oct 21, 2025
github-actions bot
pushed a commit
that referenced
this pull request
Oct 21, 2025
…MOD-11913] Increase threads' reservation timeout (#808) * get capcity instead of num that can be changed during addvector * add test * increase SVS_DEFAULT_UPDATE_JOB_WAIT_TIME to 1 ms * add to info iterator * fix tests * tiered index calls setNumThreads before adding vectors to the backend index limit addVector: should only be called with numThreads=1 limit addvectors: can be called with n ==1 only when numThreads ==1 enforce this change in tiered tests: set the num threads in the index to 1 * change to 5 ms * test add vector async * rever unrelated chcnages (cherry picked from commit cea54c9)
Successfully created backport PR for |
github-merge-queue bot
pushed a commit
that referenced
this pull request
Oct 21, 2025
…fo & [MOD-11913] Increase threads' reservation timeout (#809) [MOD-11910]Fix thread count report in SVS Tiered index debug info & [MOD-11913] Increase threads' reservation timeout (#808) * get capcity instead of num that can be changed during addvector * add test * increase SVS_DEFAULT_UPDATE_JOB_WAIT_TIME to 1 ms * add to info iterator * fix tests * tiered index calls setNumThreads before adding vectors to the backend index limit addVector: should only be called with numThreads=1 limit addvectors: can be called with n ==1 only when numThreads ==1 enforce this change in tiered tests: set the num threads in the index to 1 * change to 5 ms * test add vector async * rever unrelated chcnages (cherry picked from commit cea54c9) Co-authored-by: meiravgri <[email protected]>
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.
MOD-11910 Fix SVS Tiered index debug info thread count
Background
When SVS adds vectors in a multi-threaded environment:
updateSVSIndex
is called with the number of successfully reserved threads (which may be fewer than the total pool capacity)setNumThreads()
for theaddVectors
operationCurrent Behavior
debugInfo()
reports the thread count viagetNumThreads()
, which might have been modified by the lastaddVectors
operation, instead of the actual thread pool capacity.The Fix
numThreads
field: Now populated viagetThreadPoolCapacity()
, which reflects the configured capacity and not the temporarily modified valuelastReservedThreads
field: New field that reports the number of threads that were successfully reserved by the last ingestion operation, populated viagetNumThreads()
MOD-11913 Increase threads' reservation timeout
Increased
SVS_DEFAULT_UPDATE_JOB_WAIT_TIME
: Changed from 0.1 ms to 5 ms to improve thread reservation reliability in multi-threaded scenarios[Additional] Thread Management API Contract Enforcement For
addVector
/addVectors
APIBackground
The original SVS implementation had inconsistent thread management behavior:
addVector
) would temporarily set thread count to 1, then restore to the previous valueThe Changes
addVectorsImpl
: Eliminated the logic that automatically set thread count to 1 for single vector operations and then restored itaddVector()
: Now requiresnumThreads == 1
, enforced by assertionaddVectors()
: Prohibits calling withn=1
whennumThreads > 1
, enforced by assertionnumThreads = 1
before callingaddVector()
setNumThreads()
callsCreateTieredSVSIndex
to defaultnumThreads = 1
, allowing tests to call SVS methods directly while maintaining the single-thread contract