[SERVER-36186] Ignore value of oplogReplay find command option Created: 18/Jul/18  Updated: 29/Oct/23  Resolved: 24/Jul/19

Status: Closed
Project: Core Server
Component/s: Querying, Replication, Storage
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Improvement Priority: Major - P3
Reporter: David Storch Assignee: Xin Hao Zhang (Inactive)
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-710 Deprecate oplogReplay find command op... Closed
Documented
is documented by DOCS-12912 Investigate changes in SERVER-36186: ... Closed
Problem/Incident
Related
related to SERVER-50518 Improve slim_oplog_test.js to assert ... Closed
Backwards Compatibility: Minor Change
Sprint: Query 2019-07-01, Query 2019-07-15, Query 2019-07-29
Participants:
Linked BF Score: 50

 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.



 Comments   
Comment by Githook User [ 26/Jul/19 ]

Author:

{'name': 'Xin Hao Zhang', 'email': 'xinhao.zhang@mongodb.com', 'username': 'xinhaoz'}

Message: SERVER-36186 Delete moved function
Branch: master
https://github.com/mongodb/mongo/commit/f839c1c4b94b292252a14170662ecc3daea2d638

Comment by Githook User [ 24/Jul/19 ]

Author:

{'name': 'Xin Hao Zhang', 'username': 'xinhaoz', 'email': 'xinhao.zhang@mongodb.com'}

Message: SERVER-36186 Default to the the oplogreplay optimization path for oplog collections
Branch: master
https://github.com/mongodb/mongo/commit/5c9f7fb5d38df176bda950bdea6aaadbcb73e8e1

Generated at Thu Feb 08 04:42:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.