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

Handle empty tag sets in read preference

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.3.2
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: