Details
-
Task
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
ServerDocs: March 16-20
Description
Description
Mongo.setReadPref and Cursor.readPref now take in an additional argument hedgeOptions.
Description of Linked Ticket
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.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
Attachments
Issue Links
- documents
-
SERVER-45439 Add support for per operation hedging via an explicit read preference
-
- Closed
-
-
SERVER-46567 Update shell methods Mongo.setReadPref and cursor.readPref to support hedging
-
- Closed
-
- is duplicated by
-
DOCS-13363 Investigate changes in SERVER-45439: Add support for per operation hedging via an explicit read preference
-
- Closed
-
- is related to
-
DOCS-13369 Investigate changes in SERVER-45440: Add support for implicit operation hedging when using readPreference mode nearest
-
- Closed
-
- related to
-
DOCS-13363 Investigate changes in SERVER-45439: Add support for per operation hedging via an explicit read preference
-
- Closed
-