Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2270

_mongoc_topology_description_check_compatible doesn't allow for unknown states

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.0
    • Affects Version/s: 1.8.0
    • Component/s: 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:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: