forked-synapse/synapse
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
..
_scripts Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
api Implement room version 6 (MSC2240). (#7506) 2020-05-15 09:30:10 -04:00
app Stub out GET presence requests in the frontend proxy (#7545) 2020-05-21 14:36:46 +01:00
appservice Fix a couple of small typos 2020-05-15 18:54:32 +01:00
config Add instance_map config and route replication calls (#7495) 2020-05-14 14:00:58 +01:00
crypto Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
events Strictly enforce canonicaljson requirements in a new room version (#7381) 2020-05-14 13:24:01 -04:00
federation add a comment 2020-05-21 13:25:41 +01:00
groups Port group attestation renewal slow down from matrix-org-hotfixes (#7442) 2020-05-06 20:21:38 +01:00
handlers Retry to sync out of sync device lists (#7453) 2020-05-21 17:41:12 +02:00
http remove miscellaneous PY2 code 2020-05-15 19:37:41 +01:00
logging remove miscellaneous PY2 code 2020-05-15 19:37:41 +01:00
metrics Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 2020-05-11 18:45:23 +01:00
module_api Convert auth handler to async/await (#7261) 2020-04-15 12:40:18 -04:00
push remove miscellaneous PY2 code 2020-05-15 19:37:41 +01:00
replication Allow ReplicationRestResource to be added to workers (#7515) 2020-05-18 12:24:48 +01:00
res/templates Implement OpenID Connect-based login (#7256) 2020-05-08 08:30:40 -04:00
rest Hash passwords earlier in the password reset process (#7538) 2020-05-20 09:48:03 -04:00
server_notices Convert synapse.server_notices to async/await. (#7394) 2020-05-01 15:28:59 -04:00
spam_checker_api Add type hints to the spam check module (#6915) 2020-02-14 12:49:40 -05:00
state Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 2020-05-11 18:45:23 +01:00
static Make it clearer to the user that they haven't overridden onLogin/Register (#7237) 2020-04-09 12:38:38 +01:00
storage Retry to sync out of sync device lists (#7453) 2020-05-21 17:41:12 +02:00
streams Bump version of mypy 2019-12-12 15:21:12 +00:00
util remove miscellaneous PY2 code 2020-05-15 19:37:41 +01:00
__init__.py 1.13.0 2020-05-19 09:19:09 -04:00
event_auth.py Add type hints to event_auth code. (#7505) 2020-05-15 11:19:43 -04:00
notifier.py Fix new flake8 errors (#7489) 2020-05-13 08:24:50 -04:00
python_dependencies.py Implement OpenID Connect-based login (#7256) 2020-05-08 08:30:40 -04:00
secrets.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
server.py Move EventStream handling into default ReplicationDataHandler (#7493) 2020-05-14 14:01:39 +01:00
server.pyi Move EventStream handling into default ReplicationDataHandler (#7493) 2020-05-14 14:01:39 +01:00
types.py Validate the alt_aliases property of canonical alias events (#6971) 2020-03-03 07:12:45 -05:00
visibility.py Refactor a bit 2020-03-11 18:49:41 +00:00