mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-05 07:26:52 +00:00
Fix outlier re-persisting causing problems with sliding sync tables Follow-up to https://github.com/element-hq/synapse/pull/17512 When running on `matrix.org`, we discovered that a remote invite is first persisted as an `outlier` and then re-persisted again where it is de-outliered. The first the time, the `outlier` is persisted with one `stream_ordering` but when persisted again and de-outliered, it is assigned a different `stream_ordering` that won't end up being used. Since we call `_calculate_sliding_sync_table_changes()` before `_update_outliers_txn()` which fixes this discrepancy (always use the `stream_ordering` from the first time it was persisted), we're working with an unreliable `stream_ordering` value that will possibly be unused and not make it into the `events` table. |
||
---|---|---|
.. | ||
.gitignore | ||
17194.bugfix | ||
17512.misc | ||
17532.bugfix | ||
17543.bugfix | ||
17590.doc | ||
17594.doc | ||
17595.misc | ||
17599.misc | ||
17600.misc | ||
17604.misc | ||
17606.misc | ||
17607.bugfix | ||
17608.feature | ||
17617.misc | ||
17622.misc | ||
17626.bugfix | ||
17631.misc | ||
17632.misc | ||
17635.misc |