-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading large rooms takes 1000s+, times out resulting in confusing client error #17530
Comments
Here are the logs from Synapse:
Parsing the request log, we can see that the request took 1854s to complete. It looks like Synapse did not time out the request - but potentially the reverse proxy? Either way, this is exceedingly long. It looks like this request took a long time due to copying over user's push rules and account data from this room to the other. The logs are littered with:
This appears to happen user-by-user sequentially over replication: synapse/synapse/handlers/room_member.py Lines 1344 to 1389 in ceb3686
The main process handles the room upgrade request, while the We could shave a lot of time and resources off processing this request by just doing those two operations in larger batches than 1. |
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
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
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: