Use actual server type in standalone SDAM events:

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.2.29
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Christian Amor Kvalheim
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: