Skip to content

Large batch of to-device messages was dropped #19795

Description

@richvdh

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions