-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to deflake uploading signed devices gets propagated over federation
#1169
Conversation
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.
With my non-perl hat on.
Co-authored-by: Andrew Morgan <[email protected]>
uploading signed devices gets propagated over federation
$content->{device_keys}->{$user2_id}->{$user2_device}->{"signatures"} | ||
or die "No 'signatures' key present"; |
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.
is it sufficient to wait for anything at $content->{device_keys}{$user2_id}{$user2_device}
, or do we need to wait for there to be a signatures
element?
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.
As I understand it, we need to wait for the signatures in particular.
On server1:
- user2 joins a room
- user2 uploads signatures
On server0
, user1 syncs until they see user2's device. This is racey: the sync may complete before the signatures have uploaded, propagated over federation and then over replication.
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.
right. please could you add these words to a comment in the code.
Co-authored-by: Richard van der Hoff <[email protected]>
Co-authored-by: Richard van der Hoff <[email protected]>
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.
generally lgtm, if you can expand the comment about what we're waiting for and why.
Fixes #1167 hopefully.