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

prepareTransaction doesn't always wait for write concern on retries

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0-rc2, 4.3.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Repl 2019-07-01
    • 21

      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.

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

              Created:
              Updated:
              Resolved: