matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Purging rooms can be cancelled by the Postgres statement timeout #16322

Closed reivilibre closed 1 year ago

reivilibre commented 1 year ago

As noticed in #16193 (v1.90.0)

We need a statement timeout override for the relevant bits of purging so that we can still purge large rooms.

(Ideally we might make it more incremental and avoid the long transactions, but that luxury would take more time)