element-hq / element-hq/synapse

Upgrading large rooms takes 1000s+, times out resulting in confusing client error

Open
#17,530 1 comment 0 reactions 0 assignees View on GitHub
A-Performance A-Room-Upgrades good first issue O-Uncommon S-Major T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

### Description

Upgrading large rooms takes more than 10s, but after 10s synapse emits some kind of timeout error, leaving the client in a mess.

### Steps to reproduce

* upgrade a big room in EW with lots of bans (e.g. #element-web:matrix.org which had 15K people in it)
* "failed to fetch" error turns up after 10s leaving room half-upgraded in some horrible limbo: https://github.com/element-hq/element-meta/issues/2530

### Homeserver

matrix.org

### Synapse Version

Whatever was live 2024-07-29T14:23:58.642Z

### Installation Method

Other (please mention below)

### Database

postgres

### Workers

Multiple workers

### Platform

debian

### Configuration

_No response_

### Relevant log output

```shell
Go look at the logs, if they're still there...
```

### Anything else that would be useful to know?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.