[SERVER-46567] Update shell methods Mongo.setReadPref and cursor.readPref to support hedging Created: 03/Mar/20  Updated: 29/Oct/23  Resolved: 10/Mar/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

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

Issue Links:
Backports
Documented
is documented by DOCS-13506 Investigate changes in SERVER-46567: ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Service Arch 2020-03-09, Service Arch 2020-03-23
Participants:

 Description   

Change Mongo.setReadPref(mode, tagSet) to Mongo.setReadPref(mode, tagSet, hedgeOptions) and Cursor.readPref(mode, tagSet) to cursor.readPref(mode, tagSet, hedgeOptions), where hedgeOptions is an optional argument of the form {enabled: <bool>}.

Similar to the $readPreference subkey {hedge: {enabled: <bool>}}, passing {} is equivalent to passing

{enabled: true}

since 'enabled' defaults to true.



 Comments   
Comment by Githook User [ 18/Mar/20 ]

Author:

{'name': 'Cheahuychou Mao', 'username': 'cheahuychou', 'email': 'cheahuychou.mao@mongodb.com'}

Message: SERVER-46567 Update shell methods Mongo.setReadPref and cursor.readPref to support hedging

(cherry picked from commit f042509f1c46e292cc14af7c7ba23b9cc97c5185)
Branch: v4.4
https://github.com/mongodb/mongo/commit/6ae5d55cf55258746f52f5ae1e67a759c17ba30f

Comment by Githook User [ 10/Mar/20 ]

Author:

{'username': 'cheahuychou', 'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com'}

Message: SERVER-46567 Update shell methods Mongo.setReadPref and cursor.readPref to support hedging
Branch: master
https://github.com/mongodb/mongo/commit/f042509f1c46e292cc14af7c7ba23b9cc97c5185

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