Put deadlock detector into its own background worker
Open
technical debt
- Dominant language
- C
- Stars
- 12.8k
- Forks
- 794
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 31
Description
We do some transactions in the maintenance daemon which can get blocked on a lock. In that case the deadlock detector no longer runs. It would be good to put the deadlock detector in its own background worker such that it never blocks and could even detect deadlocks that involve the maintenance daemon itself.
Contributor guide
Research direction
Start by locating the maintenance daemon and deadlock detector entry points in the C extension; the issue names no files or tests. Map how lock waits currently affect detector execution, then define done as detection continuing independently and covering deadlocks involving the maintenance daemon.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, postgresql
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100