element-hq / element-hq/synapse

/sync should fail if the DB is read only

Open
#10,365 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.