[SERVER-57897] Add readPrefMode option to benchRun find/findOne ops Created: 21/Jun/21  Updated: 29/Oct/23  Resolved: 25/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.15, 4.4.7, 4.0.26, 5.0.0-rc5, 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Yoon Soo Kim Assignee: Yoon Soo Kim
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0, v4.4, v4.2, v4.0
Sprint: Query Execution 2021-06-28, Query Execution 2021-07-12
Participants:
Linked BF Score: 62

 Description   

BF-21667 has been caused by PERF-2404. The change has made readCmd: true required for find/findOne ops in benchRun() but benchRun() does not support any DBQuery.Option under read command mode. We can have benchRun() support DBQuery.Option.slaveOk in a way that the option is translated into readPreference when we upconvert find/findOne op into find command inside benchRun() implementation.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

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