call awaitLastOpCommitted before committing transaction in retryable_prepared_commit_transaction_after_failover.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0, 4.2.13, 4.4.5
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v4.4, v4.2
    • Repl 2020-12-14, Repl 2020-12-28, Repl 2021-01-11, Repl 2021-01-25
    • 17
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If the primary hadn't propagated the commit point to the secondary before it's stepped up in the test, then when the new primary goes to commit the transaction, it may not think that the prepare was majority committed. We should call awaitLastOpCommitted after the new primary steps up before committing the transaction.

            Assignee:
            Samyukta Lanka
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: