[SERVER-45439] Add support for per operation hedging via an explicit read preference Created: 09/Jan/20  Updated: 29/Oct/23  Resolved: 23/Jan/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.3.3

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

Issue Links:
Depends
Documented
is documented by DOCS-13363 Investigate changes in SERVER-45439: ... Closed
is documented by DOCS-13506 Investigate changes in SERVER-46567: ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-01-27
Participants:

 Description   

Add support for operation hedging, as in SERVER-45432, with an explicit readPreference.

The form of that readpreference should be:

// some existing command
{
  ...,
  $readPreference: {
    mode: "nearest",
    hedge: {
      enabled: true,   // default value is true
    }
}

which should map to RemoteCommandRequestOnAny::HedgeOptions of

  • count = 1
  • as in implicit readPreference nearest


 Comments   
Comment by Githook User [ 23/Jan/20 ]

Author:

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

Message: SERVER-45439 Add support for per operation hedging via an explicit read preference
Branch: master
https://github.com/mongodb/mongo/commit/864b6a385c1ae17bf57c33bb471f917599f8e24b

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