Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45253

Sharded cluster count command doesn't throw errors on invalid options

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.3
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Query 2019-12-30, Query 2020-01-13, Query 2020-01-27

    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})

      Attachments

        Activity

          People

            katherine.wu@mongodb.com Katherine Wu (Inactive)
            katherine.wu@mongodb.com Katherine Wu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: