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
When restarting a partial join resync, prioritise the server which actioned a partial join #14126
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d05d53d
Partial state resync: catch NotRetryingDestination
507bea0
Add column to track where we partial-joined via
8f17eaa
Write new column
328b991
Read new column
91ef868
Note TODO in passing
dc0c68f
Factor out prioritisation logic
f1c3aca
Deal with a mypy complaint
6fe9fa1
Use new column
b9a77e8
Changelog
29b362d
Revert "Partial state resync: catch NotRetryingDestination"
468c5c2
Remove accidentally copy-pasted SQL comment
9c5a7e1
Move the destination arg checks into helper func
062fe4a
Remove TODO comment: we are implementing this
9e9be2b
Ignore inconsistent rows from `partial_state_rooms_servers`
1c9988e
Invert logic
1ccf9b8
Sod it, don't try to be clever with annotations
32444f1
Merge branch 'develop' into dmr/faster-joins/pick-resync-server
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
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.
can you explain why this is needed?
_prioritise_destinations_for_partial_state_resync
takes aCollection
, not aSequence
.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 think this might have been a left-over from a WIP version before I pulled out the helper. (Or maybe I was trying to express "we preserve the iteration order of
other_destinations
"? 🤷 )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.
See 1ccf9b8, in any case