matrix-org / rust-synapse-compress-state

A tool to compress some state in a Synapse instance's database
https://pypi.org/project/synapse-auto-compressor/
Apache License 2.0
142 stars 32 forks source link

The compressor tried to increase the number of rows between None and 8118358 #85

Open MurzNN opened 2 years ago

MurzNN commented 2 years ago

Describe the bug On some rooms I got a warning with understandable description, but with weird values, like this:

[2022-03-04T13:33:16Z WARN  synapse_auto_compressor::manager] The compressor tried to increase the number of rows in !aQCReTFThhdPggxxxx:matrix.org between None and 1255815. Skipping...
[2022-03-04T13:33:25Z WARN  synapse_auto_compressor::manager] The compressor tried to increase the number of rows in !tEQSCZnuDbXmbZxxxx:t2bot.io between None and 4685024. Skipping...
[2022-03-04T13:33:27Z WARN  synapse_auto_compressor::manager] The compressor tried to increase the number of rows in !myvvLiHwOQQAvqxxxx:t2bot.io between None and 14432. Skipping...

Why the first value is "None" instead of some numeric value?

And can you explain in more detail what this warning means and is there any workaround to force compress such rooms?

H-Shay commented 2 years ago

These links might be helpful: https://github.com/matrix-org/rust-synapse-compress-state#auto-compressor-skips-chunks-when-running-on-already-compressed-room https://github.com/matrix-org/rust-synapse-compress-state/blob/main/docs/algorithm.md