This repository has been 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
Sync race cache invalidation fixes part 2 #14156
Closed
Fizzadar
wants to merge
5
commits into
matrix-org:develop
from
beeper:sync-race-cache-invalidation-fixes-part-2
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2a889f7
Change how we filter membership change events
Fizzadar c778ee1
Invalidate `get_users_in_room` before checking membership
Fizzadar 6fb0746
Simplify sync membership change room list checks
Fizzadar 8de7406
Always invalidate `get_rooms_for_user` during init sync
Fizzadar ac10859
Add changelog file
Fizzadar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix race conditions with room membership in sync when using synapse workers. Contributed by Nick @ Beeper (@fizzadar). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really hesitant to do this without fully understanding where the inconsistencies are coming in, as per #14154 (comment). In particular, it's not obvious to me that invalidating just this cache won't lead to really weird inconsistencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC this specific change wasn't based on an issue we saw more expected races similar to the other changes here. Probably makes sense to undo this commit, although the invalidating of
get_users_in_room
probably presents similar inconsistencies. Let's discuss in the issue and come back to this.