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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.15, 3.2.16
    • Fix Version/s: 3.2.21
    • Component/s: Replication, Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: