summary refs log tree commit diff
path: root/changelog.d
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2021-07-09 12:03:02 +0200
committerGitHub <noreply@github.com>2021-07-09 11:03:02 +0100
commite3e73e181b2f399f3acc9fd3138d1857f0492fa9 (patch)
tree8c69617a32bc893b80e956e2749d7fdb112cf1f8 /changelog.d
parentAdd base starting insertion event when no chunk ID is provided (MSC2716) (#10... (diff)
downloadsynapse-e3e73e181b2f399f3acc9fd3138d1857f0492fa9.tar.xz
Upsert redactions in case they already exists (#10343)
* Upsert redactions in case they already exists

Occasionally, in combination with retention, redactions aren't deleted
from the database whenever they are due for deletion. The server will
eventually try to backfill the deleted events and trip over the already
existing redaction events.

Switching to an UPSERT for those events allows us to recover from there
situations. The retention code still needs fixing but that is outside of
my current comfort zone on this code base.

This is related to #8707 where the error was discussed already.

Signed-off-by: Andreas Rammhold <andreas@rammhold.de>

* Also purge redactions when purging events

Previously redacints where left behind leading to backfilling issues
when the server stumbled across the already existing yet to be
backfilled redactions.

This issues has been discussed in #8707.

Signed-off-by: Andreas Rammhold <andreas@rammhold.de>
Diffstat (limited to 'changelog.d')
-rw-r--r--changelog.d/10343.bugfix1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/10343.bugfix b/changelog.d/10343.bugfix
new file mode 100644
index 0000000000..53ccf79a81
--- /dev/null
+++ b/changelog.d/10343.bugfix
@@ -0,0 +1 @@
+Fix errors during backfill caused by previously purged redaction events. Contributed by Andreas Rammhold (@andir).