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

Query on $cmd.sys.inprog requires limit -1 on mongos

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.9
    • Affects Version/s: None
    • Component/s: Admin, Diagnostics
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Platform 8 08/28/15, Platform 9 (09/18/15)

      Reproduced with git version 0549805e. Sometime recently mongos began requiring a limit of -1 when querying $cmd.sys.inprog:

      mongos> db.$cmd.sys.inprog.find()
      Error: error: {
      	"$err" : "bad numberToReturn (0) for $cmd type ns - can only be 1 or -1",
      	"code" : 16978
      }
      

      This is a backwards-compatibility break. mongod of the same version continues to allow any limit, as before.

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: