element-hq / element-hq/synapse
`Linearizer` uses a different reactor than the homeserver during tests
Open
A-Testing
T-Defect
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#12841](https://github.com/matrix-org/synapse/issues/12841).
---
When there is contention, `Linearizer` sleeps upon acquiring a lock and thus needs access to a reactor.
It turns out that the reactor used by `Linearizer` is _different_ to the reactor used by the `HomeServer` during tests.
There is no `Linearizer` contention in our tests, so we don't notice this bug.
Contributor guide
Assessment
This issue has not been assessed yet.