Do not send $readPreference to standalone servers

XMLWordPrintableJSON

    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      The server selection specification states that drivers MUST NOT attach a $readPreference field to commands destined for a stand alone. Node does, in a follow up PR to runCommand spec work: https://github.com/mongodb/specifications/pull/1416 a test is added that the node driver will, currently, fail. 

      User Impact

      None

      Dependencies

      • upstream and/or downstream requirements and timelines to bear in mind

      Unknowns

      • questions that need to be answered to determine implementation

      Acceptance Criteria

      Implementation Requirements

      • Sync new yaml test changes - or unskip if they are already sync-ed
      • Remove attaching $readPreference when the topology is standalone

      Testing Requirements

      • unit test, spec test sync, etc

      Documentation Requirements

      • DOCSP ticket, API docs, etc

      Follow Up Requirements

      • additional tickets to file, required releases, etc

              Assignee:
              Unassigned
              Reporter:
              Neal Beeken
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: