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

ReplSetTest.prototype.awaitReplication reads directly from the oplog collection causing false positives

    • Fully Compatible
    • ALL
    • Repl C (11/20/15)
    • 0

      Because of changes in the way oplog entries are processed, the latest written oplog entries may be ahead of what has been journaled, or snapshotted, and reported and should not be used for "waiting for replication".

      ReplSetTest.prototype.awaitReplication must be re-written to use replSetGetStatus/serverStatus(oplog:true) from each node instead of querying the oplog directly.

      In addition the function should allow waiting for more types of replication, like for readConcern.majority, or readAfterOptime (which could be used to test for the former).

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: