mirror of
https://github.com/element-hq/synapse
synced 2024-10-01 21:32:40 +00:00
2864837b65
Before, the problem scenario would get caught in one of the assertions because we expect the to_token <= membership_snapshot_token or vice-versa but it's possible the tokens are intertwined and neither is ahead of each other. Especially since the `instance_map` in `membership_snapshot_token` is made up from the `stream_ordering` of membership events at various stream positions and processed on different instances (not current stream positions). We get into trouble when stream positions are lagging between workers and our now/`to_token` doesn't cleanly compare to `membership_snapshot_token`. What we really want to assert is that the `to_token` <= the stream positions at the time we asked for the room membership snapshot. Since `get_rooms_for_local_user_where_membership_is()` doesn't return that information, the closest we can get is to get the stream positions before we ask for the room membership snapshot and consider that good enough to compare against. |
||
---|---|---|
.. | ||
__init__.py | ||
oidc_test_key.p8 | ||
oidc_test_key.pub.pem | ||
test_admin.py | ||
test_appservice.py | ||
test_auth.py | ||
test_cas.py | ||
test_deactivate_account.py | ||
test_device.py | ||
test_directory.py | ||
test_e2e_keys.py | ||
test_e2e_room_keys.py | ||
test_federation.py | ||
test_federation_event.py | ||
test_message.py | ||
test_oauth_delegation.py | ||
test_oidc.py | ||
test_password_providers.py | ||
test_presence.py | ||
test_profile.py | ||
test_receipts.py | ||
test_register.py | ||
test_room.py | ||
test_room_list.py | ||
test_room_member.py | ||
test_room_summary.py | ||
test_saml.py | ||
test_send_email.py | ||
test_sliding_sync.py | ||
test_sso.py | ||
test_stats.py | ||
test_sync.py | ||
test_typing.py | ||
test_user_directory.py | ||
test_worker_lock.py |