Warn when removing the last server from a topology

XMLWordPrintableJSON

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

      Quoting SDAM: Other Topology Types:

      A client SHOULD emit a warning when, in the process of updating its topology description, it removes the last server from the topology.

      Emitting a warning could better assist users in catching the following cases that could lead to an empty topology and non-functional application:

      • A typo in the replicaSet URI option
      • Connecting to a standalone server with a replicaSet URI option present. SDAM: Allowed Configuration Combinations allows drivers to support a Single topology type even if the replica set name is not-null, but libmongoc elects not to do that.

              Assignee:
              Isabel Atkinson
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: