[DOCS-12912] Investigate changes in SERVER-36186: Ignore value of oplogReplay find command option Created: 24/Jul/19  Updated: 13/Nov/23  Resolved: 10/Jul/20

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 4.3.1, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Kanchana Sekhar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-36186 Ignore value of oplogReplay find comm... Closed
Participants:
Days since reply: 3 years, 30 weeks, 5 days ago
Epic Link: DOCS: 4.4 Server Release Work

 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.)



 Comments   
Comment by Githook User [ 10/Jul/20 ]

Author:

{'name': 'Kanchana Sekhar', 'email': 'kanchana.sekhar@mongodb.com', 'username': 'kanchana-mongodb'}

Message: DOCS-12912 Ignore value of oplogReplay option
Branch: master
https://github.com/mongodb/docs/commit/d3a255f0dca1d0d9a79ed4fdca3262fe33be8d5e

Comment by Kanchana Sekhar [ 29/Jun/20 ]
Generated at Thu Feb 08 08:06:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.