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

prepareTransaction doesn't always wait for write concern on retries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0-rc2, 4.3.1
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Sprint:
      Repl 2019-07-01
    • Linked BF Score:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: