matrix-org_synapse/docs/development/synapse_architecture
Erik Johnston 8f35f8148e
Fix bug where a new writer advances their token too quickly (#16473)
* Fix bug where a new writer advances their token too quickly

When starting a new writer (for e.g. persisting events), the
`MultiWriterIdGenerator` doesn't have a minimum token for it as there
are no rows matching that new writer in the DB.

This results in the the first stream ID it acquired being announced as
persisted *before* it actually finishes persisting, if another writer
gets and persists a subsequent stream ID. This is due to the logic of
setting the minimum persisted position to the minimum known position of
across all writers, and the new writer starts off not being considered.

* Fix sending out POSITIONs when our token advances without update

Broke in #14820

* For replication HTTP requests, only wait for minimal position
2023-10-23 16:57:30 +01:00
..
cancellation.md Add documentation for cancellation of request processing (#12761) 2022-05-18 17:56:23 +01:00
faster_joins.md Fix-up incorrect spellings in docs. (#16282) 2023-09-08 09:47:36 -04:00
streams.md Fix bug where a new writer advances their token too quickly (#16473) 2023-10-23 16:57:30 +01:00