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

ERROR panic] thread 'main' panicked at 'Missing 2422464': src/lib.rs:668

Open
#162 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

O-Occasional S-Major T-Defect
Dominant language
Rust
Stars
173
Forks
37
PR merge metrics
No merged PRs in 30d

Description

When i run synapse_auto_compressor version 0.1.4 i get the following error

```
# sudo -u postgres ./synapse_auto_compressor -p "postgresql://postgres:@${PGHOST}/${PGDB}" -c 400 -n 100
[2025-08-23T22:13:56Z INFO synapse_auto_compressor] synapse_auto_compressor started
[2025-08-23T22:13:56Z INFO synapse_auto_compressor::manager] Running compressor on room !ucBHXkWZpgtVqHRYIw:schuerz.at with chunk size 400
[2025-08-23T22:13:57Z ERROR panic] thread 'main' panicked at 'Missing 2422464': src/lib.rs:668
```
Postgres 15.13
Synapse 1.136.0+bookworm1

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 by reproducing the failure with synapse_auto_compressor 0.1.4 against PostgreSQL 15.13 and inspect src/lib.rs:668, where the panic reports missing 2422464. Trace which database record or state lookup produces that value and define the expected behavior when it is absent; done means the reported command no longer panics.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, rust
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.