-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
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.