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

Use actual server type in standalone SDAM events:

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

      Use actual server type in standalone SDAM events:
      Currently the server type inside the topologyDescriptionChanged event
      for a single topology is 'Standalone', which is unexpected. According to
      the SDAM specification a TopologyDescription has a list of
      ServerDescriptions, which had a type field indicating the type of server
      it is and does not state that the server type never changes if the
      topology is single.

      My expectation is that a single connection to a replica set primary, for
      example, would give me a topology type of 'Single' and a server type of
      'RSPrimary', not 'Standalone' like it currently does.

      The serverDescriptionChanged event properly has the type set.

      I could not get the tests running locally - they just stop after the first step `[purge the directories]` - hence I have not added tests but the existing sdam server test should still pass.

            Assignee:
            Unassigned Unassigned
            Reporter:
            christkv Christian Amor Kvalheim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: