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
Faster room joins: Try other destinations when resyncing the state of a partial-state room #12812
Merged
squahtx
merged 14 commits into
develop
from
squah/faster_room_joins_resync_from_other_homeservers_on_failure
May 31, 2022
Merged
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
dd3e926
Raise an InvalidResponseError instead of an Exception when /state_ids…
2d63f45
Document that `FederationError`s get raised from `FederationEventHand…
83a9310
Try other destinations when resyncing the state of a partial-state room
808ad43
Add newsfile
356f0c3
Merge remote-tracking branch 'origin/develop' into squah/faster_room_…
c713c47
Update docstring for `get_room_state_ids`
ab3ccf7
Rename _sync_partial_state_room parameters
55460da
Complain if 0 destinations have been provided
972a021
Refactor loop to be infinite
ed290b2
Add TODOs
4363bd3
Merge branch 'develop' into squah/faster_room_joins_resync_from_other…
squahtx 3efe1df
Run linter
dd6bf3f
Rename _sync_partial_state_room parameters, part 2
af79717
Document InvalidResponseError from _get_state_ids_after_missing_prev_…
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.
this probably needs chasing up the call stack (through
_get_state_ids_after_missing_prev_event
,_resolve_state_at_missing_prevs
, etc) too.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.
Good point, I'll add a note to
_get_state_ids_after_missing_prev_event
._resolve_state_at_missing_prevs
replaces it with aFederationError
, which is already noted, so I'll leave that one alone.