[SERVER-45253] Sharded cluster count command doesn't throw errors on invalid options Created: 19/Dec/19  Updated: 29/Oct/23  Resolved: 21/Jan/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Bug Priority: Major - P3
Reporter: Katherine Wu (Inactive) Assignee: Katherine Wu (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-25311 mongos count command should use Count... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Query 2019-12-30, Query 2020-01-13, Query 2020-01-27
Participants:

 Description   

Similar to SERVER-42410, passing invalid options to mongos doesn't throw an error, but instead ignores the invalid option.

For example, this command should throw an error but does not.

db.coll.count({},{"random": true})



 Comments   
Comment by Githook User [ 17/Jan/20 ]

Author:

{'name': 'Katherine Wu', 'email': 'katherine.wu@mongodb.com', 'username': 'kaywux'}

Message: SERVER-45253 Throw errors on invalid options for sharded cluster count command
Branch: master
https://github.com/mongodb/mongo/commit/2ea5aa375c5fecd98db1133110ec3f29d3a6aac2

Generated at Thu Feb 08 05:08:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.