-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
regression: we now show a spinner at the bottom of every room for ~30s after launching the app #6068
Comments
I looked into this a bit: my suspicion is that it's waiting for an additional |
Update: having got Matthew to repro, it looks like my hypothesis is broadly correct (plus we have a shedload of groups requests going on at the same time for the Tag Panel): https://matrix.to/#/!WCHwNGGsrVwPeRtAnq:matrix.org/$15174950301118850fPpTb:matrix.org
|
These will be a red herring - the requests don't effect the state of the sync, which ultimately is controlling visibility of the spinner here. |
the spinner now shows for about 2 minutes. |
I usually see up to 10-15 minutes to be honest. |
So, this is Riot actually having a newer token in the device list store than in the sync store, because we write the device list immediately, whereas we only write the sync store every 5 minutes. We're also writing it unnecessarily often, so the first thing that will help this is matrix-org/matrix-js-sdk#623 |
...there is actually more to this. Having debugged this over Matthew's shoulder, this is now the first incremental sync request getting queued behind all the groups requests which number in the tens and take a couple of seconds each. Easiest fix for this is probably to limit the number of concurrent groups requests. |
just dug into this with dave; looks like what's happening is that the groups stuff spins up a whole flood of GET requests to get the users, invited_users, summary and rooms for the groups you're in. This means about 20 concurrent HTTP hits start, and for whatever reason these requests take ages (to the extent that they often 504). This in turn stalls the first initial sync. I am bemused and sad as to why the groups API makes us poll for all this rather than shoving it down /sync like everything else. |
see also matrix-org/synapse#2966 |
Mitigated by matrix-org/matrix-js-sdk#629 |
No description provided.
The text was updated successfully, but these errors were encountered: