synapse-product/synapse
Andreas Rammhold e3e73e181b
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>
2021-07-09 11:03:02 +01:00
..
_scripts Add script for getting info about recently registered users (#10290) 2021-07-06 13:03:16 +01:00
api Move methods involving event authentication to EventAuthHandler. (#10268) 2021-07-01 14:25:37 -04:00
app Add support for evicting cache entries based on last access time. (#10205) 2021-07-05 16:32:12 +01:00
appservice Implement knock feature (#6739) 2021-06-09 19:39:51 +01:00
config Remove functionality associated with unused historical stats tables (#9721) 2021-07-08 16:57:13 +01:00
crypto When joining a remote room limit the number of events we concurrently check signatures/hashes for (#10117) 2021-06-08 11:07:46 +01:00
events Move methods involving event authentication to EventAuthHandler. (#10268) 2021-07-01 14:25:37 -04:00
federation Handle old staged inbound events (#10303) 2021-07-06 13:02:37 +01:00
groups Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
handlers Add base starting insertion event when no chunk ID is provided (MSC2716) (#10250) 2021-07-08 20:25:59 -05:00
http Add additional types to the federation transport server. (#10213) 2021-06-28 07:36:41 -04:00
logging Expose opentracing trace id in response headers (#10199) 2021-06-18 11:43:22 +01:00
metrics opentracing: use a consistent name for background processes (#10135) 2021-06-07 17:57:49 +01:00
module_api MSC2918 Refresh tokens implementation (#9450) 2021-06-24 14:33:20 +01:00
push Move methods involving event authentication to EventAuthHandler. (#10268) 2021-07-01 14:25:37 -04:00
replication MSC2918 Refresh tokens implementation (#9450) 2021-06-24 14:33:20 +01:00
res/templates Port "Allow users to click account renewal links multiple times without hitting an 'Invalid Token' page #74" from synapse-dinsic (#9832) 2021-04-19 19:16:34 +01:00
rest Add base starting insertion event when no chunk ID is provided (MSC2716) (#10250) 2021-07-08 20:25:59 -05:00
server_notices Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Use get_current_users_in_room from store and not StateHandler (#9910) 2021-05-05 16:49:34 +01:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Upsert redactions in case they already exists (#10343) 2021-07-09 11:03:02 +01:00
streams Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
util Add support for evicting cache entries based on last access time. (#10205) 2021-07-05 16:32:12 +01:00
__init__.py 1.38.0rc1 2021-07-06 13:54:23 +01:00
event_auth.py Correct type hints for synapse.event_auth. (#10253) 2021-06-30 07:08:42 -04:00
notifier.py Improve opentracing annotations for Notifier (#10111) 2021-06-03 16:01:30 +01:00
python_dependencies.py Remove support for ACME v1 (#10194) 2021-06-17 18:56:48 +01:00
server.py Standardise the module interface (#10062) 2021-06-18 12:15:52 +01:00
types.py Ensure that we do not cache empty sync responses after a timeout (#10158) 2021-06-17 16:23:11 +01:00
visibility.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00