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

Commands send wrong options

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: 2.1.0, 2.1.1
    • Component/s: Sharded Cluster
    • None

      Give a client connected with the options:

      {
        connect: :sharded,
        read: {
          mode: :primary_preferred
        }
      }
      

      When sending commands like client.command(rolesInfo: 1), it also sends a $queryOptions option along which is not supported when issuing a command like that.

      The following Mongo::Error::OperationFailure is sent back:

      "$queryOptions" is not a valid argument to rolesInfo (2)
      

      I'm not entirely sure this has anything to do with sharded setups actually. It might be more general than that.

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            jeromegn Jerome Gravel-Niquet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: