bug: Slow transactions cause head-of-line blocking, resulting in intermittent federation #2644

Open
opened 2026-12-03 17:56:04 +00:00 by nex · 0 comments
Owner

What is the bug?

If a transaction sends an event in a room that takes a long time to process (e.g. a lot of events in one txn that need a lot of state/prev fetches or policy server checks), every server that tries to send events pertaining to that room end up stuck in a waiting queue to acquire a lock over the room. This results in ever increasing federation backpressure while more and more txns wait to be able to lock that room, which then causes other servers to give up trying to send to the server, resulting in intermittent federation.

Steps to reproduce

There isn't a concrete way to reproduce this, see the description of the bug though.

Server name and version

N/A 26.11.0 1e74e1b445

Additional context

Fixed by #2539

Related to #2430

### What is the bug? If a transaction sends an event in a room that takes a long time to process (e.g. a lot of events in one txn that need a lot of state/prev fetches or policy server checks), every server that tries to send events pertaining to that room end up stuck in a waiting queue to acquire a lock over the room. This results in ever increasing federation backpressure while more and more txns wait to be able to lock that room, which then causes other servers to give up trying to send to the server, resulting in intermittent federation. ### Steps to reproduce There isn't a concrete way to reproduce this, see the description of the bug though. ### Server name and version N/A 26.11.0 1e74e1b445b111cdbdd8de9edf907e4202375da1 ### Additional context Fixed by #2539 Related to #2430
nex self-assigned this 2026-12-03 17:56:04 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity#2644
No description provided.