Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1549

Handle empty tag sets in read preference

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

      https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.rst#tag_sets says that an empty tag set ([{}]) should match all candidate servers because the empty list is a subset of every list. The driver code doesn't handle this case and would only match servers that explicitly have an empty tag in their tag set.

      We should also consider adding a spec test for this.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: