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

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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.0-rc0, 4.7.0
    • manual, Server
    • None

    Description

      Description

      Downstream Change Summary

      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

          Activity

            People

              kay.kim@mongodb.com Kay Kim (Inactive)
              backlog-server-pm Backlog - Core Eng Program Management Team
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 12 weeks, 2 days ago