-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Rageshake only reports a tiny number of logs these days #26532
Comments
https://github.com/matrix-org/matrix-react-sdk/blob/985bde70c5b442c5fbafaf70d107159398699d4c/src/rageshake/rageshake.ts#L49 should be trivial to change, though wonder if it may cause performance degradation given we already see perf issues around IDB |
This is odd. It's been 5MB for years afaict. I'd like to understand what changed. |
i think the thing that has changed is:
|
There certainly exist rageshakes in the past which contain significantly more than 5MB (up to 10MB in some cases), but they do seem to be in the tiny minority, so I guess this really is as simple as "we're logging more stuff now". Looking at a sample rageshake from Matthew (5 492 255 bytes altogether):
Basically, I think this is a particular problem because you have a non-functional backup, and Seshat frantically trying to decrypt undecryptable things: as in, this is a symptom of other problems rather than a new problem. That said, changing the rageshake cap to have an age factor seems like a good plan. I'm hesitant to impose an absolute cap at 24 hours, since we often find useful logs from less frantic accounts from a few days ago. Maybe we could say something like:
|
that sounds like a great plan - thanks for digging into it. |
Currently, the rageshake store keeps up to 5M of logs. In a busy session for a power-user, that can be quite a short time. This PR changes the store so that we will keep up to 100M, if they are less than 24H old. (Any logs older than 24H, of more than 5M, will continue to be dropped.) Fixes element-hq/element-web#26532.
Steps to reproduce
Outcome
What did you expect?
24h of logs, capped at 50MB or 100MB or some other high limit.
What happened instead?
5 minutes of logs, capped at 5MB.
Operating system
No response
Application version
Element Nightly version: 2023110701
How did you install the app?
No response
Homeserver
No response
Will you send logs?
No
The text was updated successfully, but these errors were encountered: