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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.12
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Repl 2019-05-20
    • Linked BF Score:
      12

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: