Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-801

Read preference with mode nearest and tag sets does not conform to spec

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.12, 2.0.0
    • Affects Version/s: 1.11.0
    • Component/s: Replica Set
    • None
    • 1

      The Read Preference spec specifies that the `nearest` mode should interact with tag sets by using members that match the tag sets - see https://github.com/10gen/specifications/blob/master/source/driver-read-preferences.rst#how-modes-interact-with-tag-sets

      The Ruby driver currently ignores tag sets for the implementation of `nearest` - see #select_near_pool https://github.com/mongodb/mongo-ruby-driver/blob/1.x-stable/lib/mongo/functional/read_preference.rb#L165

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            gjmurakami Gary Murakami
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: