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

Clearing initial sync flag should clear oplog truncate after point

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc5, 4.1.1
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.0
    • Repl 2018-05-07, Repl 2018-05-21, Repl 2018-06-04, Repl 2018-06-18

      If a user crashed with an oplogTruncateAfterPoint set, deleted their oplog, went into initial sync, didn't apply any operations, and then cleared their initial sync flag, and then crashed, they could start up with a stale oplogTruncateAfterPoint and delete part of their oplog. If that oplog was used to commit a majority write (which it can be since initial sync nodes send progress updates), this could lead to majority writes being rolled back.

            Assignee:
            vesselina.ratcheva@mongodb.com Vesselina Ratcheva (Inactive)
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: