element-hq / element-hq/synapse
Extend send dummy event to remove really old extremities
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#8725](https://github.com/matrix-org/synapse/issues/8725).
---
The current send dummy event mechanism will try and reduce the number of extremities in a room to below a threshold. However, if one of the extremities is really old then state res across a small number of extremities can still take quite a lot of resources. We should change the behaviour of the mechanism to try and remove old extremities, even if the count of extremities is below the threshold.
Contributor guide
Research direction
Start by locating Synapse's current send dummy event mechanism and trace how it counts room extremities and applies its threshold. The change is complete when the mechanism also removes sufficiently old extremities even when the total count is below that threshold; the issue names no files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100