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

readConcernLevel URI option is not mapped correctly

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      The documentation specifies:

      readConcernLevel=String => :read_concern => Hash

      This documentation should be expanded to explain how the hash is built from the string. Currently one has to read the :read_concern documentation to figure this out.

      The :read_concern documentation states:

      Specifies the read concern options. The only valid key is level, for which the valid values are :local, :majority, and :snapshot.

      However, actual driver behavior is different:

      irb(main):025:0> Mongo::URI.new('mongodb://test.host/?readConcernLevel=snapshot').uri_options
      => {"read_concern"=>:snapshot}
      

      The expected result is {read_concern: {level: :snapshot}}.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: