From 91e66273a7483aa0e4bcf3e82fe52ae69a886ad6 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 30 Jan 2020 17:34:48 +0000 Subject: [PATCH 1/2] Log when we delete room in bg update --- synapse/storage/data_stores/main/state.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synapse/storage/data_stores/main/state.py b/synapse/storage/data_stores/main/state.py index 9b6f68e77764..4167f83c9b68 100644 --- a/synapse/storage/data_stores/main/state.py +++ b/synapse/storage/data_stores/main/state.py @@ -365,6 +365,8 @@ def _background_remove_left_rooms_txn(txn): left_rooms = set(room_ids) - joined_room_ids + logger.info("Deleting current state left rooms: %r", left_rooms) + # First we get all users that we still think were joined to the # room. This is so that we can mark those device lists as # potentially stale, since there may have been a period where the From 058cb69be693a60648c15cf5ea5f820fc2379b8c Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 30 Jan 2020 17:35:36 +0000 Subject: [PATCH 2/2] Newsfile --- changelog.d/6816.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/6816.misc diff --git a/changelog.d/6816.misc b/changelog.d/6816.misc new file mode 100644 index 000000000000..a77ba1d7a5ca --- /dev/null +++ b/changelog.d/6816.misc @@ -0,0 +1 @@ +Add background update to clean out left rooms from current state.