forked-synapse/synapse/storage/databases/main
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
..
__init__.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
account_data.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
appservice.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
cache.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
censor_events.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
client_ips.py Fix module API's get_user_ip_and_agents function when run on workers (#11112) 2021-10-25 13:01:04 +01:00
deviceinbox.py Delete messages for hidden devices from device_inbox (#11199) 2021-11-02 13:18:30 +00:00
devices.py Fix providing a RoomStreamToken instance to _notify_app_services_ephemeral (#11137) 2021-11-02 10:39:02 +00:00
directory.py Allow room_alias_name parameter to be handled by /createRoom calls on workers (#10757) 2021-09-06 14:37:15 +01:00
e2e_room_keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
end_to_end_keys.py Fix invalidating OTK count cache after claim (#10875) 2021-09-22 15:31:05 +01:00
event_federation.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
event_push_actions.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
events_bg_updates.py Fix thread BG update to not seq scan event_json (#11192) 2021-10-27 11:33:21 +00:00
events_forward_extremities.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
events_worker.py Track ongoing event fetches correctly in the presence of failure (#11240) 2021-11-04 10:33:53 +00:00
events.py Add remaining type hints to synapse.events. (#11098) 2021-11-02 09:55:52 -04:00
filtering.py Add type hints to filtering classes. (#10958) 2021-10-01 07:02:32 -04:00
group_server.py Add index to local_group_updates.stream_id (#11231) 2021-11-02 15:46:48 +00:00
keys.py Add missing type hints to synapse.util (#9982) 2021-05-24 15:32:01 -04:00
lock.py Handle federation inbound instances being killed more gracefully (#11262) 2021-11-08 09:54:47 +00:00
media_repository.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
metrics.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
monthly_active_users.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
openid.py Convert additional databases to async/await part 2 (#8200) 2020-09-01 08:39:04 -04:00
presence.py Fix providing a RoomStreamToken instance to _notify_app_services_ephemeral (#11137) 2021-11-02 10:39:02 +00:00
profile.py Annotate log_function decorator (#10943) 2021-10-27 17:27:23 +01:00
purge_events.py In _purge_history_txn, ensure that txn.fetchall has elements before accessing rows (#10690) 2021-09-24 09:19:51 +00:00
push_rule.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
pusher.py Annotate synapse.storage.util (#10892) 2021-10-08 14:25:16 +00:00
receipts.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
registration.py Enable changing user type via users admin API (#11174) 2021-10-26 09:01:06 +00:00
rejections.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
relations.py Additional type hints for relations database class. (#11205) 2021-10-28 14:35:12 -04:00
room_batch.py Resolve and share state_groups for all historical events in batch (MSC2716) (#10975) 2021-10-13 17:44:00 -05:00
room.py Add search by room ID and room alias to List Room admin API (#11099) 2021-11-02 10:01:13 +00:00
roommember.py Add remaining type hints to synapse.events. (#11098) 2021-11-02 09:55:52 -04:00
search.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
session.py Use direct references for some configuration variables (#10798) 2021-09-13 13:07:12 -04:00
signatures.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state_deltas.py Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
state.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
stats.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
stream.py Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
tags.py Use inline type hints in http/federation/, storage/ and util/ (#10381) 2021-07-15 12:46:54 -04:00
transactions.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
ui_auth.py Fix remove_stale_pushers job on SQLite. (#10843) 2021-09-20 10:26:13 +01:00
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 Minor @cachedList enhancements (#9975) 2021-05-14 11:12:36 +01:00