Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invites are not always included in sync #7406

Open
matrixbot opened this issue Dec 17, 2023 · 0 comments
Open

Invites are not always included in sync #7406

matrixbot opened this issue Dec 17, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 17, 2023

This issue has been migrated from #7406.


Description

On fast changing membership states the sync will not reliably include rooms a user was invited to.
It might be related to issues
matrix-org/synapse#4533 and
matrix-org/synapse#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:
https://github.com/matrix-org/synapse/blob/9c1b83b0078aa9cc1bb902e14d3f7302625ba099/synapse/storage/data_stores/main/roommember.py#L797

@matrixbot matrixbot changed the title Dummy issue Invites are not always included in sync Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant