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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.11.0
    • 1.12, 2.0.0
    • Replica Set
    • None
    • 1

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: