element-hq / element-hq/synapse

Postgres VACUUMs hold back applying schema deltas

Open
#10,505 0 comments 0 reactions 0 assignees View on GitHub
T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#10505](https://github.com/matrix-org/synapse/issues/10505).

---

A user in the channel had the issue that a schema delta was blocked behind a vacuum.
Their logs didn't say anything other than Synapse was about to apply a schema delta.
In the end, they had to kill the autovacuum which got things going again.

Can we do something about this?

Ideas:

* cancel vacuums automatically (probably don't want to do this, from what I read)
* try to detect if a vacuum is running and warn in the logs so the administrator knows
* if a schema delta takes a long time, log a warning message that acknowledges this and maybe suggests checking if a vacuum is getting in the way

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.