Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

synapse_port_db assumes events is append-only, but it is not #12007

Open
@richvdh

Description

@richvdh

synapse_port_db has a list of tables that it believes to be "append-only". That is to say, if the script is re-run on an updated copy of the input database, it will not clear these tables, but just add new rows that have arrived since last time.

Included in this list is events, which is generally read-only, but we do sometimes update existing rows - for example, when we convert an outlier to a non-outlier.

This means that any event that is de-outliered between runs of synapse_port_db may still be marked as an outlier in the target database, even though we have full state for it.

I'm not entirely sure if this has any measurable impact. It's possible that it simply means we will redundantly de-outlier it again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-DatabaseDB stuff like queries, migrations, new/remove columns, indexes, unexpected entries in the dbS-TolerableMinor significance, cosmetic issues, low or no impact to users.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions