element-hq / element-hq/synapse
/sync should fail if the DB is read only
Open
P5
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 [#10365](https://github.com/matrix-org/synapse/issues/10365).
---
atm there is no way for clients to know if synapse is hosed due to the DB being read only. a nice way to tell them would be to emit 500s on /sync
Contributor guide
Research direction
Locate the /sync entry point and the handling of database failures, then reproduce the read-only database condition to observe the current response. Done means clients receive HTTP 500 responses from /sync when Synapse cannot operate because the database is read-only.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100