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

Can't count() from maxTimeMS helper

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.6.0-rc3
    • 2.6.0-rc2
    • Shell
    • None
    • ALL

    Description

      trying to find().count() with maxTimeMS fails from the shell:

      db.test.find( { x: {$gt : 0 } }).maxTimeMS(10).count()
      2014-03-25T09:19:20.702+1100 count failed: {
      	"ok" : 0,
      	"errmsg" : "no such command option $maxTimeMS; use maxTimeMS instead"
      } at src/mongo/shell/query.js:191

      The same command when run will work as expected:

      > db.test.runCommand( "count", {query : {x:{$gt:0}}, maxTimeMS : 10 } )
      { "code" : 50, "ok" : 0, "errmsg" : "50 operation exceeded time limit" }

      Attachments

        Activity

          People

            Unassigned Unassigned
            andre.defrere@mongodb.com Andre de Frere
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: