forked-synapse/synapse/storage
Erik Johnston 1ce59d7ba0 Fix sync waiting for an invalid token from the "future" (#17386)
Fixes https://github.com/element-hq/synapse/issues/17274, hopefully.

Basically, old versions of Synapse could advance streams without
persisting anything in the DB (fixed in #17229). On restart those
updates would get lost, and so the position of the stream would revert
to an older position. If this happened across an upgrade to a later
Synapse version which included #17215, then sync could get blocked
indefinitely (until the stream advanced to the position in the token).

We fix this by bounding the stream positions we'll wait for to the
maximum position of the underlying stream ID generator.
2024-07-02 12:40:03 +01:00
..
controllers Reintroduce #17291. (#17338) 2024-06-24 14:40:28 +00:00
databases Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:40:03 +01:00
engines Change allow_unsafe_locale to also apply on new databases (#17238) 2024-05-29 12:04:13 +01:00
schema Add report room API (MSC4151) (#17270) 2024-06-12 12:27:46 +02:00
util Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:40:03 +01:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
_base.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
background_updates.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
database.py Move towards using MultiWriterIdGenerator everywhere (#17226) 2024-05-29 12:19:10 +00:00
keys.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
prepare_database.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
push_rule.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
roommember.py Use fully-qualified PersistedEventPosition when returning RoomsForUser (#17265) 2024-06-04 12:58:03 -05:00
types.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00