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

Use lastWritten opTime for secondary's term check when learning the commit point

    XMLWordPrintableJSON

Details

    • Replication
    • Repl 2024-02-05, Repl 2024-02-19

    Description

      Secondaries perform a term check when learning the commit point to ensure the commit point is on the same branch of oplog history. Currently this term check compares the term of the new commit point against the term of this secondary’s lastApplied opTime. We will need to use the term of the lastWritten opTime instead.

      Assignee should read the related code (including the call sites of this function) to make sure this is correct.

      Attachments

        Activity

          People

            kishore.devireddy@mongodb.com Kishore Devireddy
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: