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

prepareTransaction doesn't always wait for write concern on retries

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.2.0-rc2, 4.3.1
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Repl 2019-07-01
    • 21

    Description

      We no longer wait for write concern on the client lastOp no matter what as of SERVER-33727. We only do so if the client explicitly set the lastOp forward. Retrying prepareTransaction only sets the lastOp if it is less than the prepareOpTime. We really need to call setLastOpToSystemLastOpTime always and then also set it to the prepareOpTime if that's still greater. That will make sure prepare retries always wait for write concern.

      Attachments

        Activity

          People

            judah.schvimer@mongodb.com Judah Schvimer
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: