bug: /sync: with include_leave: true, every incremental sync resends all left rooms with their full state #2516
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
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#2516
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?
When a client's sync filter sets room.include_leave: true, continuwuity includes every left (not forgotten) room in rooms.leave on every incremental sync, even if nothing changed in those rooms since
since(lol). Each of those rooms also gets its full state at the time of the leave, not just the state that changed.Because the response is never empty, the long-poll returns immediately. The client ends up in a tight loop of re-processing the same left rooms about every 2s in my case.
Steps to reproduce
Server name and version
26.11.0-alpha.1
Additional context
Synapse behaviour is to send these rooms only on initial sync. There are some Complement tests for this too which c10y currently fails. I found this issue by using the Trixnity library where this is apparently a default behaviour if the forget capability is advertised, which was always(?) the case up to recently, thanks to !2452