summary refs log tree commit diff
path: root/changelog.d
diff options
context:
space:
mode:
authorSean Quah <8349537+squahtx@users.noreply.github.com>2022-12-09 23:02:11 +0000
committerGitHub <noreply@github.com>2022-12-09 23:02:11 +0000
commit373c485d8c7f39206bac60c6ef313b4a1978bbc0 (patch)
tree55421486a7058b6583cff60512dc6bd192f8a20b /changelog.d
parentRequire types in tests.storage. (#14646) (diff)
downloadsynapse-373c485d8c7f39206bac60c6ef313b4a1978bbc0.tar.xz
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>
Diffstat (limited to 'changelog.d')
-rw-r--r--changelog.d/14650.bugfix2
1 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/14650.bugfix b/changelog.d/14650.bugfix
new file mode 100644
index 0000000000..5e18641bf7
--- /dev/null
+++ b/changelog.d/14650.bugfix
@@ -0,0 +1,2 @@
+Fix a bug introduced in Synapse 1.72.0 where the background updates to add non-thread unique indexes on receipts would fail if they were previously interrupted.
+