synapse/synapse/federation
Erik Johnston 98c8fc6ce8
Handle federation inbound instances being killed more gracefully (#11262)
* Make lock better handle process being killed

If the process gets killed and restarted (so that it didn't have a
chance to drop its locks gracefully) then there may still be locks in
the DB that are for the same instance that haven't yet timed out but are
safe to delete.

We handle this case by a) checking if the current instance already has
taken out the lock, and b) if not then ignoring locks that are for the
same instance.

* Periodically check for old staged events

This is to protect against other instances dying and their locks timing
out.
2021-11-08 09:54:47 +00:00
..
sender Annotate log_function decorator (#10943) 2021-10-27 17:27:23 +01:00
transport Add use_float=true to ijson calls in Synapse (#11217) 2021-11-01 09:28:04 -07:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
federation_base.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
federation_client.py Annotate log_function decorator (#10943) 2021-10-27 17:27:23 +01:00
federation_server.py Handle federation inbound instances being killed more gracefully (#11262) 2021-11-08 09:54:47 +00:00
persistence.py Convert Transaction and Edu object to attrs (#10542) 2021-08-06 09:39:59 -04:00
send_queue.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
units.py Convert Transaction and Edu object to attrs (#10542) 2021-08-06 09:39:59 -04:00