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

Handle empty tag sets in read preference

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            divjot.arora Divjot Arora
            Reporter:
            divjot.arora Divjot Arora
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: