0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-13 13:32:19 +01:00
synapse/synapse/replication/tcp
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
..
streams More efficiently handle no-op POSITION (#16640) 2023-11-16 12:32:17 +00:00
__init__.py Update replication.md with info on TCP module structure (#12621) 2022-05-09 14:46:43 -07:00
client.py Allow multiple workers to write to receipts stream. (#16432) 2023-10-25 16:16:19 +01:00
commands.py Fix comments related to replication. (#16428) 2023-10-06 07:25:44 -04:00
context.py Add redis SSL configuration options (#15312) 2023-05-11 13:02:51 +01:00
external_cache.py Add opentracing spans to calls to external cache (#12380) 2022-04-07 13:18:29 +01:00
handler.py Fix sending out of order POSITION over replication (#16639) 2023-11-16 13:05:09 +00:00
protocol.py Add some clarification to the doc/comments regarding TCP replication (#15354) 2023-03-30 12:51:35 +02:00
redis.py Fix sending out of order POSITION over replication (#16639) 2023-11-16 13:05:09 +00:00
resource.py Fix sending out of order POSITION over replication (#16639) 2023-11-16 13:05:09 +00:00