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

Invalidate rooms for user caches when receiving membership events #14155

Conversation

Fizzadar
Copy link
Contributor

@Fizzadar Fizzadar commented Oct 12, 2022

More info detail on issue: #14154

This should fix a race where the event notification comes in over replication before the state replication, leaving a window during which a sync may get an incorrect list of rooms for the user.

Signed off by Nick @ Beeper (@Fizzadar).

Pull Request Checklist

This should fix a race where the event notification comes in over
replication before the state replication, leaving a window during
which a sync may get an incorrect list of rooms for the user.
@Fizzadar Fizzadar marked this pull request as ready for review October 12, 2022 15:32
@Fizzadar Fizzadar requested a review from a team as a code owner October 12, 2022 15:32
Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is very much a stop-gap measure, but its better than nothing for now

@erikjohnston erikjohnston merged commit 2c2c3f8 into matrix-org:develop Oct 17, 2022
@Fizzadar Fizzadar deleted the sync-race-cache-invalidation-fixes-part-1 branch October 17, 2022 13:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants