Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5263

Do not send $readPreference to standalone servers

    • Not Needed

      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 Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: