Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-101131

Call awaitReplication before storing pre-restore dbhashes in magic_restore_test.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • v8.0
    • Repl 2025-03-03
    • 200

      The call to store pre-restore dbhashes in the movePrimary magic restore test stores the hashes from the data on the secondary node. Since we're able to acknowledge a write before it is applied, it's possible movePrimary completes and returns before the document deletion in the config.collection_critical_sections collection occurs. This results in the dbhash being mismatched when we compare it to the post-restore hash, which expects an empty critical section document.

            Assignee:
            ali.mir@mongodb.com Ali Mir
            Reporter:
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: