Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
1bbdff2d
Unverified
Commit
1bbdff2d
authored
Apr 02, 2026
by
ishandhanani
Committed by
GitHub
Apr 02, 2026
Browse files
fix(kv-router): lazily register workers in slot tracker (#7795)
parent
07af8dca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
lib/kv-router/src/sequences/multi_worker.rs
lib/kv-router/src/sequences/multi_worker.rs
+12
-1
No files found.
lib/kv-router/src/sequences/multi_worker.rs
View file @
1bbdff2d
...
...
@@ -394,7 +394,18 @@ impl<P: SequencePublisher + 'static> ActiveSequencesMultiWorker<P> {
}
=
req
;
if
!
self
.workers
.read
()
.index
.contains_key
(
&
worker
)
{
return
Err
(
SequenceError
::
WorkerNotFound
{
worker
});
// The selector already picked this worker from the discovery watch,
// but the slot tracker hasn't been updated yet. Lazily register it
// so we don't drop tracking for this request.
let
mut
table
=
self
.workers
.write
();
if
!
table
.index
.contains_key
(
&
worker
)
{
tracing
::
debug!
(
?
worker
,
"Lazily registering worker in slot tracker"
);
let
idx
=
table
.slots
.len
();
table
.slots
.push
((
worker
,
RwLock
::
new
(
ActiveSequences
::
new
(
self
.block_size
))));
table
.index
.insert
(
worker
,
idx
);
}
}
if
let
Some
(
existing_worker
)
=
self
.request_to_worker
.get
(
&
request_id
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment