QuickConnect fails intermittently across replicas #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: multi-replica stateless deployment (two 2-replica apps,
cheeztvandfafflix, each one PostgreSQL plus valkey, no sticky sessions). Not a 12.0 regression — live in the deployed build. Tracking: #12.Problem
Emby.Server.Implementations/QuickConnect/QuickConnectManager.cs:33-34holds_currentRequestsand_authorizedSecretsin process, with zero persistence.The three legs of a quick-connect flow — initiate, authorize, exchange — can each land on a different pod, so the later legs throw
ResourceNotFoundExceptionagainst a pod that never saw the request. The failure is intermittent, which makes it read as a client bug rather than a server one.Proposal
Move both dictionaries to shared storage, preserving the existing TTL semantics (request expiry, single-use secret consumption):
Self-contained — no dependency on the other items in #12, so it can be picked up at any time.
Acceptance
PostgreSqlTestServerintests/Jellyfin.Server.Testsand run in thepostgres-migration-chainWoodpecker step (JELLYFIN_TEST_POSTGRES). In-memory providers have hidden different semantics and are how three bugs reached production.unkin-agent referenced this issue2026-09-24 23:05:08 +10:00