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

Prime the oplog manager's visibility timestamp with the top of oplog

    • Fully Compatible
    • ALL
    • Repl 2018-03-26
    • 0

      At startup, the `WiredTigerOplogManager::_oplogReadTimestamp` is typically initialized to `1`. Currently, oplog readers getting a visibility timestamp are completely asynchronous with how that value is updated; an oplog reader that gets in quickly after startup can attempt to read with timestamp 1 and crash the server.

      Instead, it should be legal to initialize the value with `_oplogMaxAtStartup`. That value may contain holes, but holes imply replication recovery will truncate the oplog before accepting connections. A call to `cappedTruncateAfter` will set the correct the value.

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: