-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Error backfilling in room for 10 minutes after purging history #9864
Comments
Annoyingly, the cache is not part of the data store and we can't just use the cache invalidation there. |
The cache is also indexed by a set of event IDs, and so there isn't even an easy way of invalidating it based on state group |
related: #11521 |
synapse/synapse/storage/databases/main/purge_events.py Lines 295 to 297 in 06ba710
See below. |
I think it's |
Ah, I'm glad I asked! Indeed, we don't look to invalidate that cache anywhere, not even in |
The error in the logs is:
This happens when something pulls the state group into the cache just before we purge history and delete the state group, at which point we fail to invalidate the state cache. If we backfill the purged history again, the worker hits the cache and gets the old, deleted state group.
This is likely not much an issue outside of tests, as the state_cache expires after an hour.
The text was updated successfully, but these errors were encountered: