anonymousland-synapse/synapse/replication/http
Erik Johnston 1531b214fc
Add ability to wait for replication streams (#7542)
The idea here is that if an instance persists an event via the replication HTTP API it can return before we receive that event over replication, which can lead to races where code assumes that persisting an event immediately updates various caches (e.g. current state of the room).

Most of Synapse doesn't hit such races, so we don't do the waiting automagically, instead we do so where necessary to avoid unnecessary delays. We may decide to change our minds here if it turns out there are a lot of subtle races going on.

People probably want to look at this commit by commit.
2020-05-22 14:21:54 +01:00
..
__init__.py Allow ReplicationRestResource to be added to workers (#7515) 2020-05-18 12:24:48 +01:00
_base.py Add instance_map config and route replication calls (#7495) 2020-05-14 14:00:58 +01:00
devices.py Fixup docs 2019-11-26 12:04:48 +00:00
federation.py Add ability to wait for replication streams (#7542) 2020-05-22 14:21:54 +01:00
login.py Port replication http server endpoints to async/await 2019-10-29 13:00:51 +00:00
membership.py Add ability to wait for replication streams (#7542) 2020-05-22 14:21:54 +01:00
register.py Address review comments 2019-11-06 14:54:24 +00:00
send_event.py Add ability to wait for replication streams (#7542) 2020-05-22 14:21:54 +01:00
streams.py Add ability to wait for replication streams (#7542) 2020-05-22 14:21:54 +01:00