MatrixSynapse/synapse
Sean Quah 373c485d8c
Handle half-created indices in receipts index background update (#14650)
When Synapse is terminated while running the background update to create
the `receipts_graph` or `receipts_linearized` indexes, the indexes may
be successfully created (or marked as invalid on postgres) while the
background update remains unfinished. When Synapse next starts up, the
background update will fail because the index already exists, or exists
but is invalid on postgres.

Use the existing code to create indices in background updates, since it
handles these edge cases.

Signed-off-by: Sean Quah <seanq@matrix.org>
2022-12-09 23:02:11 +00:00
..
_scripts
api Respond with proper error responses on unknown paths. (#14621) 2022-12-08 11:37:05 -05:00
app
appservice
config
crypto
events
federation
handlers Limit the number of devices we delete at once (#14649) 2022-12-09 13:31:32 +00:00
http Respond with proper error responses on unknown paths. (#14621) 2022-12-08 11:37:05 -05:00
logging
metrics
module_api
push
replication
res Fix html templates to load images only on HTTPS (#14625) 2022-12-08 17:28:02 +00:00
rest Respond with proper error responses on unknown paths. (#14621) 2022-12-08 11:37:05 -05:00
server_notices
spam_checker_api
state
static
storage Handle half-created indices in receipts index background update (#14650) 2022-12-09 23:02:11 +00:00
streams
util Respond with proper error responses on unknown paths. (#14621) 2022-12-08 11:37:05 -05:00
__init__.py
event_auth.py
notifier.py
py.typed
server.py
types.py
visibility.py