[SERVER-32806] retried findAndModify not using oplogHack when querying for pre/post image oplog entry Created: 19/Jan/18  Updated: 30/Oct/23  Resolved: 13/Feb/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.7.1
Fix Version/s: 3.6.3, 3.7.3

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-32804 runClientFunctionWithRetries is not d... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Sprint: Sharding 2018-02-26
Participants:
Linked BF Score: 0

 Description   

causing it to perform a collection scan on the oplog.

To fix, this query should pass the oplogReplay flag:
https://github.com/mongodb/mongo/blob/r3.7.1/src/mongo/db/ops/write_ops_retryability.cpp#L124

similar to here:
https://github.com/mongodb/mongo/blob/r3.7.1/src/mongo/db/transaction_history_iterator.cpp#L55



 Comments   
Comment by Githook User [ 14/Feb/18 ]

Author:

{'email': 'randolph@10gen.com', 'name': 'Randolph Tan', 'username': 'renctan'}

Message: SERVER-32806 retried FindAndModify not using oplogHack when querying for pre/post image oplog entry

(cherry picked from commit ee26a6df68dc93e3e66f99180e2d03af09fd9daa)
Branch: v3.6
https://github.com/mongodb/mongo/commit/0bf18b0a3a12e23308af9d26fb1e993a8ec81f36

Comment by Githook User [ 13/Feb/18 ]

Author:

{'email': 'randolph@10gen.com', 'name': 'Randolph Tan', 'username': 'renctan'}

Message: SERVER-32806 retried FindAndModify not using oplogHack when querying for pre/post image oplog entry
Branch: master
https://github.com/mongodb/mongo/commit/ee26a6df68dc93e3e66f99180e2d03af09fd9daa

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