forked-synapse/synapse/storage/databases/main
Erik Johnston b3b793786c
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:39:49 +01:00
..
__init__.py Add support for moving /push_rules off of main process (#17037) 2024-03-28 15:44:07 +00:00
account_data.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
appservice.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
cache.py Don't invalidate all get_relations_for_event on history purge (#17083) 2024-05-29 12:57:10 +01:00
censor_events.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
client_ips.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
deviceinbox.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
devices.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
directory.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
e2e_room_keys.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
end_to_end_keys.py Reintroduce "Reduce device lists replication traffic."" (#17361) 2024-06-25 10:34:34 +01:00
event_federation.py Reintroduce #17291. (#17338) 2024-06-24 14:40:28 +00:00
event_push_actions.py Require the 'from' parameter for /notifications be an integer (#17283) 2024-06-19 10:05:39 +01:00
events_bg_updates.py Don't invalidate all get_relations_for_event on history purge (#17083) 2024-05-29 12:57:10 +01:00
events_forward_extremities.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
events_worker.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
events.py Reintroduce #17291. (#17338) 2024-06-24 14:40:28 +00:00
experimental_features.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
filtering.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
keys.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
lock.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
media_repository.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
metrics.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
monthly_active_users.py Update license headers 2023-11-21 15:29:58 -05:00
openid.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
presence.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
profile.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
purge_events.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
push_rule.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
pusher.py Replaces all usages of StreamIdGenerator with MultiWriterIdGenerator (#17229) 2024-05-30 11:07:32 +00:00
receipts.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
registration.py Add support for MSC3823 - Account Suspension (#17051) 2024-05-01 17:45:17 +01:00
rejections.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
relations.py Don't invalidate all get_relations_for_event on history purge (#17083) 2024-05-29 12:57:10 +01:00
room.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
roommember.py Use fully-qualified PersistedEventPosition when returning RoomsForUser (#17265) 2024-06-04 12:58:03 -05:00
search.py Return the search terms as search highlights for SQLite instead of nothing (#17000) 2024-04-26 09:43:52 +01:00
session.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
signatures.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
state_deltas.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
state.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
stats.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
stream.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
tags.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
task_scheduler.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
transactions.py Fix filtering of rooms when supplying the destination query parameter to /_synapse/admin/v1/federation/destinations/<destination>/rooms (#17077) 2024-04-26 10:52:24 +01:00
ui_auth.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
user_directory.py Handle hyphens in user dir search porperly (#17254) 2024-06-05 10:40:34 +01:00
user_erasure_store.py Update license headers 2023-11-21 15:29:58 -05:00