_mongoc_topology_description_check_compatible doesn't allow for unknown states

XMLWordPrintableJSON

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

      _mongoc_topology_description_check_compatible determines the topology to be incompatible if any server is outside of the compatible range.

      Since we supported wire version 0, and that was the default value for a reset/disconnected server_description nothing was ever outside of the range.

      Now that minimum wire version is 2, a unknown state server_description will have wire_version=0, yet still part of the topology (just not selectable).

      However, now the compatible check will fail because it found a server outside of the range.

      I think we should probably maybe initialize the server_descriptions with wire version -1 or something, or otherwise skip checks for servers in unknown state.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Hannes Magnusson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: