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

Check lastCommittedOpTime instead of awaitReplication for prepare recovery/index build tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.12
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2019-05-20
    • 12
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      recover_prepared_transactions_startup_secondary_application.js and prepare_transaction_index_build.js need to use PrepareHelpers.prepareTransaction with w: 1 to test prepare recovery/index build blocking prepared transactions on secondaries. Instead of using awaitReplication which doesn't necessarily align with the primary's local view of majority committed point, we should check lastCommittedOpTime on primary to make sure the majority commit point has been advanced past the prepareTimstamp.

            Assignee:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Reporter:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None