MatrixSynapse/tests
Sean Quah 7ff22d6da4
Fix `LruCache` corruption bug with a `size_callback` that can return 0 (#11454)
When all entries in an `LruCache` have a size of 0 according to the
provided `size_callback`, and `drop_from_cache` is called on a cache
node, the node would be unlinked from the LRU linked list but remain in
the cache dictionary. An assertion would be later be tripped due to the
inconsistency.

Avoid unintentionally calling `__len__` and use a strict `is None`
check instead when unwrapping the weak reference.
2021-11-30 16:28:02 +00:00
..
api Support filtering by relations per MSC3440 (#11236) 2021-11-09 08:10:58 -05:00
app
appservice Fix errors in Synapse logs from unit tests. (#10939) 2021-09-30 11:03:29 -04:00
config Add missing type hints to config base classes (#11377) 2021-11-23 15:21:19 +00:00
crypto Fix perspectives requests for multiple keys for the same server (#11440) 2021-11-29 13:15:36 +00:00
events Strip "join_authorised_via_users_server" from join events which do not need it. (#10933) 2021-10-01 11:39:17 -04:00
federation Add missing copyright header. (#11460) 2021-11-30 13:23:53 +00:00
handlers Support the stable /hierarchy endpoint from MSC2946 (#11329) 2021-11-29 14:32:20 -05:00
http Prevent the media store from writing outside of the configured directory 2021-11-19 13:39:15 +00:00
logging Include exception in json logging (#11028) 2021-10-08 13:08:25 +02:00
module_api Remove a debug statement from tests. (#11239) 2021-11-03 13:11:16 +00:00
push Make background updates controllable via a plugin (#11306) 2021-11-29 17:57:06 +01:00
replication Add type hints to `synapse/storage/databases/main/events_worker.py` (#11411) 2021-11-26 18:41:31 +00:00
rest Remove unnecessary `json.dumps` from `tests.rest.admin` (#11461) 2021-11-30 14:51:04 +00:00
scripts
server_notices Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
state
storage Make background updates controllable via a plugin (#11306) 2021-11-29 17:57:06 +01:00
test_utils
util Fix `LruCache` corruption bug with a `size_callback` that can return 0 (#11454) 2021-11-30 16:28:02 +00:00
__init__.py
server.py Misc typing fixes for tests, part 2 of N (#11330) 2021-11-16 10:41:35 +00:00
test_distributor.py
test_event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
test_federation.py Remove redundant parameters on `_check_event_auth` (#11292) 2021-11-10 14:16:06 +00:00
test_mau.py Revert change to counting of deactivated users towards the monthly active users limit (#11127) 2021-10-20 11:05:29 +01:00
test_metrics.py
test_phone_home.py
test_preview.py Fix URL preview errors when previewing XML documents. (#11196) 2021-10-27 14:48:02 +00:00
test_server.py
test_state.py
test_terms_auth.py
test_test_utils.py
test_types.py
test_visibility.py
unittest.py Make background updates controllable via a plugin (#11306) 2021-11-29 17:57:06 +01:00
utils.py Remove code invalidated by deprecated config flag 'trust_identity_servers_for_password_resets' (#11395) 2021-11-23 06:46:40 -08:00