0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-21 01:13:59 +01:00
synapse/docs/development
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
..
img/git Move dev/ docs to development/ (#10453) 2021-07-22 12:58:24 +02:00
internal_documentation Compile and render Synapse's docs into a browsable, mobile-friendly and searchable website (#10086) 2021-06-03 17:20:40 +01:00
synapse_architecture Fix bug where a new writer advances their token too quickly (#16473) 2023-10-23 16:57:30 +01:00
cas.md Improve code formatting and fix a few typos in docs (#11221) 2021-11-01 11:35:55 +00:00
contributing_guide.md Fix-up incorrect spellings in docs. (#16282) 2023-09-08 09:47:36 -04:00
database_schema.md Add documentation on background updates. (#16420) 2023-10-06 07:23:20 -04:00
demo.md Fix federation in demo scripts. (#12783) 2022-05-18 14:49:33 -04:00
dependencies.md Create dependabot changelogs at release time (#15481) 2023-05-30 13:54:50 +01:00
experimental_features.md Add documentation for experimental feature flags. (#10865) 2021-09-22 13:41:42 +00:00
git.md Move dev/ docs to development/ (#10453) 2021-07-22 12:58:24 +02:00
releases.md Update URLs to matrix.org blog categories. (#16008) 2023-08-24 11:06:06 -04:00
reviews.md Add information on how the Synapse team does reviews. (#13132) 2022-07-06 07:30:58 -04:00
room-dag-concepts.md Clarify that we mark as outliers because we don't have any state for them (#12345) 2022-04-06 16:34:33 -05:00
saml.md Improve code formatting and fix a few typos in docs (#11221) 2021-11-01 11:35:55 +00:00