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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Ali Mir
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: