Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12912

Investigate changes in SERVER-36186: Ignore value of oplogReplay find command option

    XMLWordPrintableJSON

Details

    Description

      Description

      SERVER ticket description: The oplogReplay option to the find command (and oplogReplay bit in the legacy OP_QUERY find protocol) currently must be set by the client in order to enable an optimized code path for queries looking for a particular range of ts values in the oplog. See getOplogStartHack() in get_executor.cpp.

      Instead of requiring clients to explicitly enable this optimization, the query system should automatically optimize such queries, whether or not oplogReplay is set. This should allow us to mark the oplogReplay option as deprecated. The implementation can change to accept oplogReplay but entirely ignore its true/false value.
      Change Description: The oplogReplay flag is now deprecated. Please update https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/#op-query to mark the oplogReplay OP_QUERY wire protocol flag to reflect this.

      Any application which sets this flag can safely remove it when communicating with a 4.4 server. The flag is still needed to optimize oplog queries when communicating with a 4.2 or older server.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            kanchana.sekhar@mongodb.com Kanchana Sekhar
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 30 weeks, 5 days ago