synapse/synapse
Eric Eastwood 408a05ebbc
Fix potential lost logcontext when PerDestinationQueue.shutdown(...) (#19178)
Spawning from looking at the logs in
https://github.com/element-hq/synapse/issues/19165#issuecomment-3527452941
which mention the `federation_transaction_transmission_loop`. I don't
think it's the source of the lost logcontext that person in the issue is
experiencing because this only applies when you try to `shutdown` the
homeserver.

Problem code introduced in
https://github.com/element-hq/synapse/pull/18828

To explain the fix, see the [*Deferred
callbacks*](3b59ac3b69/docs/log_contexts.md (deferred-callbacks))
section of our logcontext docs for more info (specifically using
solution 2).
2025-11-13 15:17:15 -06:00
..
_scripts MSC4140: Remove auth from delayed event management endpoints (#19152) 2025-11-13 18:56:17 +00:00
api Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
app Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
appservice Add debug logs to track Clock callbacks (#19173) 2025-11-13 12:07:23 -06:00
config Merge branch 'release-v1.142' into develop 2025-11-07 12:09:02 +00:00
crypto Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
events Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
federation Fix potential lost logcontext when PerDestinationQueue.shutdown(...) (#19178) 2025-11-13 15:17:15 -06:00
handlers MSC4140: Remove auth from delayed event management endpoints (#19152) 2025-11-13 18:56:17 +00:00
http Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
logging Restore printing sentinel for log_record.request (#19172) 2025-11-13 09:57:56 -06:00
media Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
metrics Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
module_api Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
push Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
replication Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
res Updated providers.json to use X instead of Twitter following rebrand and schema change (#18767) 2025-09-26 11:06:50 +01:00
rest MSC4140: Remove auth from delayed event management endpoints (#19152) 2025-11-13 18:56:17 +00:00
server_notices Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
spam_checker_api Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
state Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
static Update link to the clients webpage, fix #15825 (#15874) 2023-07-06 17:28:09 +02:00
storage Remove support for PostgreSQL 13 (#19170) 2025-11-13 19:38:59 +00:00
streams Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
synapse_rust Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
types Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
util Add debug logs to track Clock callbacks (#19173) 2025-11-13 12:07:23 -06:00
__init__.py Drop Python 3.9, bump tests/builds to Python 3.10 (#19099) 2025-10-29 12:15:00 -05:00
event_auth.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
notifier.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
py.typed
server.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
visibility.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00