element-hq / element-hq/synapse
Large batch of to-device messages was dropped
Open
A-to-device-messages
A-Workers
O-Uncommon
S-Critical
T-Defect
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
Logs show that a batch of (150) to-device messages received over federation was stored by the `encryption` worker, but never sent out to users by the synchrotrons. Obviously this led to unable-to-decrypt errors.
It looks like the batch was correctly INSERTed into Postgres, but the replication logic failed to find it, and instead of sending out an `RDATA` with the necessary data, we instead sent an empty `POSITION` command. The synchrotrons therefore did not attempt to read the messages from the database, and ended up just deleting them when the user made the next sync request.
Contributor guide
Assessment
This issue has not been assessed yet.