You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2024. It is now read-only.
Update all stream IDs after processing replication rows (matrix-org#14723) (#52)
* Update all stream IDs after processing replication rows (matrix-org#14723)
This creates a new store method, `process_replication_position` that
is called after `process_replication_rows`. By moving stream ID advances
here this guarantees any relevant cache invalidations will have been
applied before the stream is advanced.
This avoids race conditions where Python switches between threads mid
way through processing the `process_replication_rows` method where stream
IDs may be advanced before caches are invalidated due to class resolution
ordering.
See this comment/issue for further discussion:
matrix-org#14158 (comment)
# Conflicts:
# synapse/storage/databases/main/devices.py
# synapse/storage/databases/main/events_worker.py
* Fix bad cherry-picking
* Remove leftover stream advance
0 commit comments