synapse-old/tests/replication/tcp/streams
Erik Johnston fef08cbee8
Fix sending out of order `POSITION` over replication (#16639)
If a worker reconnects to Redis we send out the current positions of all our streams. However, if we're also trying to send out a backlog of RDATA at the same time then we can end up sending a `POSITION` with the current token *before* we've sent all the RDATA before the current token.

This doesn't cause actual bugs as the receiving servers see the POSITION, fetch the relevant rows from the DB, and then ignore the old RDATA as they come in. However, this is inefficient so it'd be better if we didn't  send out-of-order positions
2023-11-16 13:05:09 +00:00
..
__init__.py
test_account_data.py to_device updates could be dropped when consuming the replication stream (#15349) 2023-03-30 19:41:14 +02:00
test_events.py Avoid sending massive replication updates when purging a room. (#16510) 2023-10-18 12:26:01 -04:00
test_federation.py Add missing type hints to tests.replication. (#14987) 2023-02-06 09:55:00 -05:00
test_partial_state.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_receipts.py
test_to_device.py Use full GitHub links instead of bare issue numbers. (#16637) 2023-11-15 08:02:11 -05:00
test_typing.py Fix sending out of order `POSITION` over replication (#16639) 2023-11-16 13:05:09 +00:00