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
Safe async event cache #13308
Merged
Merged
Safe async event cache #13308
Changes from 3 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6beae64
Run asynchronous callbacks first after database transactions
Fizzadar 65b47e1
Divide event cache invalidation into async & local
Fizzadar 87001f8
Prefer any local invalidation method in `_attempt_to_invalidate_cache`
Fizzadar c170748
Add typing to database run callbacks function
Fizzadar be84644
Implement & use `invalidate_get_event_cache_after_txn` method
Fizzadar 9ef18e4
Add changelog file
Fizzadar e90f402
Improve docstring/comment to highlight remote caches not invalidated
Fizzadar b8ea213
Add docstring to run callbacks function
Fizzadar d39d9bf
Add docstring to event worker cache invalidation methods
Fizzadar a2d2312
Store async transaction callbacks separately
Fizzadar bd174cc
Catch missing `async_call_after`
Fizzadar e71ac4a
Update synapse/storage/database.py
richvdh 22f114d
Update changelog.d/13308.bugfix
richvdh 771c29d
Rename 13308.bugfix to 13308.misc
richvdh 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
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
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.
IMHO this second paragraph belongs as a comment rather than a docstring. It's not really the place of a docstring to describe the reasons behind implementation decisions within a method.