Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2209

Do not include default read preference on cursor getMore and killCursors commands

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.12.2
    • Affects Version/s: 1.7.3
    • Component/s: None
    • Labels:
      None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Background & Motivation

      Cursor getMore and killCursors operations must target the same server that produced the cursor ID.

      Currently, the default read preference of primaryPreferred is included in the getMore and killCursors.

      This can be surprising to users logging CommandStarted events.

      The specifications do not note expected behavior with passing read preference to getMore and killCursors. PYTHON-2059 notes a similar report for PyMongo.

      See the attached main.go for a reproducible example.

      Scope

      • Omit read preference from getMore and killCursors commands.

            Assignee:
            preston.vasquez@mongodb.com Preston Vasquez
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: