You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make Jellycompat audio selection generation-safe across API replicas #749
Jellyfin-compatible audio selection and remote-transcode replacement are not serialized across API replicas. The current playback state and recipe checks fail closed before serving bytes, but two API pods can still race while switching tracks: selection, node replacement, and recipe publication can land in different orders. A failed remote replacement also stops the working job before the candidate has proved ready, causing avoidable playback interruption until reconstruction.
This is most visible during rolling deployments or simultaneous client reports. It is an availability and coordination gap, not a path for serving audio from the wrong downmix recipe: the versioned playback routes reject mismatched runtime facts.
Acceptance criteria
Give each durable Jellyfin-compatible audio selection a monotonic generation.
Carry that generation through node start/adoption, readiness receipts, recipe publication, reconstruction, cleanup, and rollback.
Reject stale node starts and recipe publications without disturbing a newer selection.
Replace a remote transcode atomically, or restore the previous recipe immediately when the candidate cannot become ready.
Cover concurrent switches from separate API-server instances and mixed-version rolling deployments.
Context
Follow-up to #748. That PR adds process-local transaction handling and fail-closed byte-route validation for the stereo-downmix recipe; this issue covers the remaining cross-replica continuity guarantee.
Activity