Files
synapse/tests
e8f39a3f0e Count wait_for_stream_token timeouts per lagging stream
When a worker's replication of a stream stalls, clients whose previous
sync was served by a worker ahead of it hand us a token we will never
catch up to, `wait_for_stream_token` times out after 10s and `/sync`
returns an empty response indefinitely. Nothing metric-side pointed at
which stream had stalled (see #20080, where it was `quarantined_media`).

Count the timeouts against each stream the token is still ahead of us on,
and name those streams (and their positions) in the logs instead of
dumping two whole tokens.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 13:18:58 +01:00
..
2026-08-11 13:52:49 +00:00
2026-06-02 11:05:38 +01:00