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

Can't count() from maxTimeMS helper

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc3
    • Affects Version/s: 2.6.0-rc2
    • Component/s: Shell
    • Labels:
      None
    • ALL

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

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

              Created:
              Updated:
              Resolved: