Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13363

Investigate changes in SERVER-45439: Add support for per operation hedging via an explicit read preference

    XMLWordPrintable

    Details

      Description

      Description

      Downstream Change Summary

      This ticket introduced a new $readPreference key "hedge" with two subkeys: "enabled" (default true) and "delay" (default true) . (Removed delay in DOCS-13429)

      Description of Linked Ticket

      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
            delay: true,        // default value is true
          }
      }
      

      which should map to RemoteCommandRequestOnAny::HedgeOptions of

      • count = 1
      • as in implicit readPreference nearest

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              backlog-server-pm Backlog - Core Eng Program Management Team
              Participants:
              Last commenter:
              Kay Kim Kay Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 44 weeks, 4 days ago
                Date of 1st Reply: