Skip to content

relay: fix LF onTrackEvicted no-op and local-forwarder seed-read race#452

Open
afrind wants to merge 1 commit into
mainfrom
fix/mt-top-n
Open

relay: fix LF onTrackEvicted no-op and local-forwarder seed-read race#452
afrind wants to merge 1 commit into
mainfrom
fix/mt-top-n

Conversation

@afrind

@afrind afrind commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

In LocalForwarder mode onTrackEvicted looked up a session-keyed subscriber on the registry's publisher forwarder, but the subscriber lives on the per-thread local forwarder (exec-keyed channel subscribers on the publisher fwd) — so it silently evicted nothing and never sent publishDone. Branch on mode(): hop to session's exec, resolve the local forwarder, and evict there.

Also seed a new local forwarder's largest/extensions from a publisherExec hop instead of reading them on subscriberExec while the publisher advances largest_.


This change is Reviewable

In LocalForwarder mode onTrackEvicted looked up a session-keyed subscriber on
the registry's publisher forwarder, but the subscriber lives on the per-thread
local forwarder (exec-keyed channel subscribers on the publisher fwd) — so it
silently evicted nothing and never sent publishDone. Branch on mode(): hop to
session's exec, resolve the local forwarder, and evict there.

Also seed a new local forwarder's largest/extensions from a publisherExec hop
instead of reading them on subscriberExec while the publisher advances largest_.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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