Insert no-op oplog entry with higher term in magic restore

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • Repl 2024-03-18, Repl 2024-04-01
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We need to insert a dummy oplog entry that contains a fake higher term. The term should follow this algorithm:

      term = lastOplogEntry.getTerm()
      if !term
      	term = 1
      maxTerm = max(restoreToHigherTermThan, term)
      Return maxTerm + 100
      

            Assignee:
            Ali Mir
            Reporter:
            Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: