This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Invites are not always included in sync #7406
Copy link
Copy link
Open
Labels
A-InviteInviting users to rooms and accepting invitesInviting users to rooms and accepting invitesA-Syncdefects related to /syncdefects related to /syncS-MinorBlocks non-critical functionality, workarounds exist.Blocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
Description
On fast changing membership states the sync will not reliably include rooms a user was invited to.
It might be related to issues
#4533 and
#4422
Reproduction
This is not easily reproducable, an attempt should look as follows:
- Roomadmin a invites user b into rooms r_a and r_b
- a kicks b from r_a before he accepts the invite
- a changes room_state of r_b multiple times
- b retrieves current rooms via (initial)sync, r_b doesn't show
Version information
We used the synapse version v1.12.0.
Installed per git clone
And is operating in a debian stretch docker container.
Hotfix
A possibility to fix it temporarly is to restart the server or invalidate the caches.
We debugged this issue for quite some time and are using a hotfix, that stops caching from
get_forgotten_rooms_for_user
in roommember.py by removing following line:
@cached() |
Metadata
Metadata
Assignees
Labels
A-InviteInviting users to rooms and accepting invitesInviting users to rooms and accepting invitesA-Syncdefects related to /syncdefects related to /syncS-MinorBlocks non-critical functionality, workarounds exist.Blocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Bugs, crashes, hangs, security vulnerabilities, or other reported issues.