MatrixSynapse/synapse/storage/databases/main
David Robertson b83e822556
Stop user directory from failing if it encounters users not in the `users` table. (#11053)
The following scenarios would halt the user directory updater:

- user joins room
- user leaves room
- user present in room which switches from private to public, or vice versa.

for two classes of users:

- appservice senders
- users missing from the user table.

If this happened, the user directory would be stuck, unable to make forward progress.

Exclude both cases from the user directory, so that we ignore them.

Co-authored-by: Eric Eastwood <erice@element.io>
Co-authored-by: reivilibre <oliverw@matrix.org>
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2021-10-13 09:38:22 +00:00
..
__init__.py
account_data.py
appservice.py
cache.py
censor_events.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
client_ips.py Stop user directory from failing if it encounters users not in the `users` table. (#11053) 2021-10-13 09:38:22 +00:00
deviceinbox.py
devices.py
directory.py
e2e_room_keys.py
end_to_end_keys.py
event_federation.py
event_push_actions.py
events.py Fix logic flaw preventing tracking of MSC2716 events in existing room versions (#10962) 2021-10-05 11:51:57 -05:00
events_bg_updates.py
events_forward_extremities.py
events_worker.py
filtering.py Add type hints to filtering classes. (#10958) 2021-10-01 07:02:32 -04:00
group_server.py
keys.py
lock.py
media_repository.py
metrics.py
monthly_active_users.py Add functionality to remove deactivated users from the monthly_active_users table (#10947) 2021-10-04 08:34:42 -07:00
openid.py
presence.py
profile.py
purge_events.py
push_rule.py disallow-untyped-defs for synapse.push (#11023) 2021-10-11 17:42:10 +01:00
pusher.py Annotate synapse.storage.util (#10892) 2021-10-08 14:25:16 +00:00
receipts.py
registration.py Annotate synapse.storage.util (#10892) 2021-10-08 14:25:16 +00:00
rejections.py
relations.py
room.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
room_batch.py Ensure `(room_id, next_batch_id)` is unique to avoid cross-talk/conflicts between batches (MSC2716) (#10877) 2021-09-28 21:23:16 -05:00
roommember.py
search.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
session.py
signatures.py
state.py
state_deltas.py
stats.py Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
stream.py
tags.py
transactions.py
ui_auth.py
user_directory.py Stop user directory from failing if it encounters users not in the `users` table. (#11053) 2021-10-13 09:38:22 +00:00
user_erasure_store.py