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

Initial sync might miss ops that were in flight when it started

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.2.21
    • 3.0.15, 3.2.16
    • Replication, Storage
    • None
    • Fully Compatible
    • ALL
    • Storage 2017-09-11

    Description

      When initial sync starts, the node reads the last oplog entry "A" from its sync source and uses that as its starting point when it applies operations in a later phase. Because such a read is not subject to oplog visibility rules (because it uses a reverse scanning cursor instead of a forward cursor), there could be uncommitted operations prior to "A" that affect documents after initial sync has already passed such documents by in its collection scan phase. Such changes would never be applied to the initial-syncing node.

      Attachments

        Activity

          People

            judah.schvimer@mongodb.com Judah Schvimer
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: