Turn on OPLOG_REPLAY for the change notification query

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.13
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2017-08-21, Repl 2017-09-11
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Matthew Russotto (Inactive)
            Reporter:
            Matthew Russotto (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: