Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45439

Add support for per operation hedging via an explicit read preference

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.3
    • Internal Code
    • None
    • Fully Compatible
    • Sharding 2020-01-27

    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

      Attachments

        Issue Links

          Activity

            People

              cheahuychou.mao@mongodb.com Cheahuychou Mao
              jason.carey@mongodb.com Jason Carey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: