bug: Slow transactions cause head-of-line blocking, resulting in intermittent federation #2644
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Continuwuity/Web Interface
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2644
Loading…
Reference in a new issue
No description provided.
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?
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
1e74e1b445Additional context
Fixed by #2539
Related to #2430