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

Update lastWriteOpTime for prepareTransaction on secondary

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Repl 2019-05-20, Repl 2019-06-03
    • Linked BF Score:
      15

      Description

      lastWriteOpTime will be used to maintain the oplog chain when writing commit oplog entry. Since the secondary doesn't update it right now, committing the transaction will not have the link from the commit entry to the prepare.

      We should also add invariants to wherever prevOpTime shouldn't be null when writing oplog entries.

        Attachments

          Activity

            People

            Assignee:
            vesselina.ratcheva Vesselina Ratcheva
            Reporter:
            siyuan.zhou Siyuan Zhou
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: