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

Perform server selection for sessions check if required

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      From the driver-sessions specification:

      If the TopologyDescription and connection type indicate that
      the driver is not connected to any servers, OR
      is not a direct connection AND is not connected to a data-bearing server
      then a driver must do a server selection for any server whose type is data-bearing. Server selection will either time out or result in a TopologyDescription that includes at least one connected, data-bearing server.

      We do not do this, which is leading to errors when running the sessions YAML tests. Specifically, there a failCommand is causing the primary to transition to Unknown so our synchronous check for logicalSessionsTimeoutMinutes fails due to being temporarily null (until the server selection for the next operation).

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: