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

Turn on OPLOG_REPLAY for the change notification query

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.13
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2017-08-21, Repl 2017-09-11

    Description

      The query flag OPLOG_REPLAY needs to be set when doing change notification queries, or the collection scan will have to search the entire oplog from the beginning whenever doing a change notification. We also need to make sure the query is of the proper form for oplog replay for both initial query and resume; this basically means there must be a timestamp "greater than" or "greater than or equal" term at the top level of the query; the system will invariant() if this is not the case.

      Attachments

        Activity

          People

            matthew.russotto@mongodb.com Matthew Russotto
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: