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

Reverse oplog cursors can return early on wiredtiger in 3.0

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.15
    • 3.0.11
    • Replication, Storage
    • None
    • Fully Compatible
    • ALL
    • Storage 2017-02-13

    Description

      In 3.0, on WiredTiger, if you do a reverse natural order query on the oplog, it's possible that it returns only 1 document, even when the oplog has many entries. This can happen if the newest entry is visible, but the second newest entry is not yet visible. When we encounter a hidden entry in a reverse collection scan, we simply return EOF, as though we had hit the beginning of the collection. This can cause issues where rollback fails to complete and hits an fassert, since if the node rolling back does a reverse oplog query against its sync source and that cursor returns that there are no more entries, it assumes we hit the beginning of the sync source's oplog and thus that we have falling too far behind to recover.

      Attachments

        Activity

          People

            milkie@mongodb.com Eric Milkie
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: