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

Correctly wait for rollback to complete in rollback_with_coalesced_txn_table_updates_during_oplog_application.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc1, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v5.0
    • Repl 2021-05-31
    • 42

      When crashAfterRollbackTruncation is false, we didn't wait for rollback to begin, so it's possible that when calling awaitNodesAgreeOnPrimary(), secondary1 has not started rollback, but already saw the new primary, and thus awaitNodesAgreeOnPrimary() will not see the network exception, but after this, rollback starts and connection closed, so the replSetFreeze() command sees the network exception. We should wait for rollback to complete before stepping it up.

            Assignee:
            wenbin.zhu@mongodb.com Wenbin Zhu
            Reporter:
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: