Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBM-1391: Enabling PITR after physical restore causes PSMDB to crash #1019

Merged
merged 4 commits into from
Sep 26, 2024

Commits on Sep 20, 2024

  1. Fix inconsistent data after physical restore

    ... with PITR
    
    After PITR physical restore, there was inconsistent data between Primary
    and Secondaries nodes.
    The reason was that PITR oplog and dropping collections are applied in
    reverse order:
    - on Primary: [PITR oplog apply] -> [dropping PBM databases]
    - on each Secondary: [dropping PBM databases] -> [catch up from Primary
    including oplog apply]
    
    Not using DDL operations (drop in this case) for PBM's system
    collections fixes the problem.
    boris-ilijic committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    5344a7c View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Expand setupNewDB logic with all PBM's collections

    That ensures that collection will not be created during PITR and by
    doing that we eliminate the possible problem of having different UUIDs.
    boris-ilijic committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    717044e View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Configuration menu
    Copy the full SHA
    ca4209b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b1d8a5 View commit details
    Browse the repository at this point in the history