forked-synapse/synapse/replication/tcp
Erik Johnston 8de3703d21
Make event persisters periodically announce position over replication. (#8499)
Currently background proccesses stream the events stream use the "minimum persisted position" (i.e. `get_current_token()`) rather than the vector clock style tokens. This is broadly fine as it doesn't matter if the background processes lag a small amount. However, in extreme cases (i.e. SyTests) where we only write to one event persister the background processes will never make progress.

This PR changes it so that the `MultiWriterIDGenerator` keeps the current position of a given instance as up to date as possible (i.e using the latest token it sees if its not in the process of persisting anything), and then periodically announces that over replication. This then allows the "minimum persisted position" to advance, albeit with a small lag.
2020-10-12 15:51:41 +01:00
..
streams Only send RDATA for instance local events. (#8496) 2020-10-09 13:10:33 +01:00
__init__.py Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
client.py Make event persisters periodically announce position over replication. (#8499) 2020-10-12 15:51:41 +01:00
commands.py Make event persisters periodically announce position over replication. (#8499) 2020-10-12 15:51:41 +01:00
handler.py Make event persisters periodically announce position over replication. (#8499) 2020-10-12 15:51:41 +01:00
protocol.py Enable mypy checking for unreachable code and fix instances. (#8432) 2020-10-01 08:09:18 -04:00
redis.py Add unit test for event persister sharding (#8433) 2020-10-02 09:57:12 +01:00
resource.py Make event persisters periodically announce position over replication. (#8499) 2020-10-12 15:51:41 +01:00