matrix-org / matrix-org/rust-synapse-compress-state

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

Open
#85 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
173
Forks
37
PR merge metrics
No merged PRs in 30d

Description

**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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the warning emitted by synapse_auto_compressor::manager and trace how the two row-count values are obtained for affected rooms. Reproduce or inspect the reported None value and determine what the warning means and whether compression can be forced. Done means the cause and any supported workaround are documented, with a fix if the value is erroneous.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.