synapse-product/synapse/handlers
Brendan Abolivier d1ae1015ec
Retry to sync out of sync device lists (#7453)
When a call to `user_device_resync` fails, we don't currently mark the remote user's device list as out of sync, nor do we retry to sync it.

https://github.com/matrix-org/synapse/pull/6776 introduced some code infrastructure to mark device lists as stale/out of sync.

This commit uses that code infrastructure to mark device lists as out of sync if processing an incoming device list update makes the device handler realise that the device list is out of sync, but we can't resync right now.

It also adds a looping call to retry all failed resync every 30s. This shouldn't cause too much spam in the logs as this commit also removes the "Failed to handle device list update for..." warning logs when catching `NotRetryingDestination`.

Fixes #7418
2020-05-21 17:41:12 +02:00
..
ui_auth Support for routing outbound HTTP requests via a proxy (#6239) 2019-11-01 14:07:44 +00:00
__init__.py Fix registration on workers (#4682) 2019-02-20 18:47:31 +11:00
_base.py async/await is_server_admin (#7363) 2020-05-01 15:15:36 +01:00
account_data.py Remove unused get_pagination_rows methods. (#6557) 2019-12-17 11:44:32 +00:00
account_validity.py Fix buggy condition in account validity handler (#7074) 2020-03-16 12:16:30 +00:00
acme_issuing_service.py Allow configuration of the path used for ACME account keys. 2019-06-24 13:51:22 +01:00
acme.py Small grammar fixes to the ACME v1 deprecation notice (#6944) 2020-02-21 08:53:01 +00:00
admin.py Admin api to add an email address (#6789) 2020-02-07 10:29:36 +00:00
appservice.py Update black to 19.10b0 (#6304) 2019-11-01 02:43:24 +11:00
auth.py Support UI Authentication for OpenID Connect accounts (#7457) 2020-05-15 12:26:02 -04:00
cas_handler.py Persist user interactive authentication sessions (#7302) 2020-04-30 13:47:49 -04:00
deactivate_account.py Add local_current_membership table (#6655) 2020-01-15 14:59:33 +00:00
device.py Retry to sync out of sync device lists (#7453) 2020-05-21 17:41:12 +02:00
devicemessage.py Resync remote device list when detected as stale. (#6786) 2020-01-30 17:06:38 +00:00
directory.py async/await is_server_admin (#7363) 2020-05-01 15:15:36 +01:00
e2e_keys.py Query missing cross-signing keys on local sig upload (#7289) 2020-04-22 12:29:36 +01:00
e2e_room_keys.py Lint 2020-03-06 15:11:13 +00:00
events.py Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
federation.py Convert federation handler to async/await. (#7459) 2020-05-11 15:12:46 -04:00
groups_local.py async/await is_server_admin (#7363) 2020-05-01 15:15:36 +01:00
identity.py import urllib.parse when using urllib.parse.quote (#7319) 2020-04-22 12:18:51 +01:00
initial_sync.py Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
message.py Omit displayname or avatar_url if they aren't set instead of returning null (#7497) 2020-05-19 10:31:25 +01:00
oidc_handler.py Support UI Authentication for OpenID Connect accounts (#7457) 2020-05-15 12:26:02 -04:00
pagination.py Merge pull request #6949 from matrix-org/rav/list_room_aliases_peekable 2020-02-19 11:19:11 +00:00
password_policy.py Allow server admins to define and enforce a password policy (MSC2000). (#7118) 2020-03-26 16:51:13 +00:00
presence.py Ignore incoming presence updates when presence is disabled (#7508) 2020-05-15 11:44:00 +01:00
profile.py async/await is_server_admin (#7363) 2020-05-01 15:15:36 +01:00
read_marker.py Port receipt and read markers to async/wait 2019-10-29 15:08:22 +00:00
receipts.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
register.py Hash passwords earlier in the registration process (#7523) 2020-05-18 09:46:18 -04:00
room_list.py Apply federation check for /publicRooms with filter list (#7367) 2020-04-30 11:38:07 +01:00
room_member_worker.py Add type hints to room member handlers (#7513) 2020-05-15 15:05:25 -04:00
room_member.py Add type hints to room member handlers (#7513) 2020-05-15 15:05:25 -04:00
room.py Convert the room handler to async/await. (#7396) 2020-05-04 07:43:52 -04:00
saml_handler.py Add more type hints to SAML handler. (#7445) 2020-05-07 09:30:45 -04:00
search.py Convert search code to async/await. (#7460) 2020-05-11 15:12:39 -04:00
set_password.py Hash passwords earlier in the password reset process (#7538) 2020-05-20 09:48:03 -04:00
state_deltas.py Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
stats.py Reduce amount of logging at INFO level. (#6862) 2020-02-06 13:31:05 +00:00
sync.py Speed up fetching device lists changes in sync. 2020-05-05 17:40:29 +01:00
typing.py Remove concept of a non-limited stream. (#7011) 2020-03-20 14:40:47 +00:00
user_directory.py Filter the results of user directory searching via the spam checker (#6888) 2020-02-14 07:17:54 -05:00