-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
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.