Skip to content

Tombstone dry run - Fix orphan data in prod db #26385

Closed

Description

@chenhongjing

Failed to restore prod dump in GCP due to constraint violation issues

TODOs

  • Fix existing constraint violations found in prod db

Activity

  1. added
    Entities - Data Migration
    on Mar 6, 2025
  2. changed the title [-]Fix orphan data in prod db[/-] [+]Tombstone dry run - Fix orphan data in prod db[/+] on Mar 6, 2025
  3. self-assigned this
    on Mar 6, 2025
  4. chenhongjing commented on Mar 6, 2025

    @chenhongjing
    Author

    Leave a note here in case we need to tace it.

    • Check that the records violate constraints are orphan data.
    • Delete orphan records using the following queries. Their versioned records and the chains of bad data will still exist in prod as orphan data, but they won't corrupt the db.
    delete from addresses where office_id in (14157, 53003, 6947);
    delete from party_roles where filing_id in (64467, 338236, 71677, 110542);
    • Argus and I have had separate backups on each side on 2025-03-06.

    Move it to done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities - Data Migration

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions