Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Invites are not always included in sync #7406

@schmop

Description

@schmop

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-InviteInviting users to rooms and accepting invitesA-Syncdefects related to /syncS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions