Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2098

Aggregation: Clearly document mongo shell 2.6 & mongod 2.4 incompatibility

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • Server

    Description

      Using the mongo shell 2.5.3 to run aggregation on mongod 2.4 does not work:

      > db.messages.aggregate( [     {$project: {             "headers.Mime-Version":1,             _id:0         }     }, {$limit: 0} ])
      assert: command failed: { "ok" : 0, "errmsg" : "unrecognized field \"cursor" } : aggregate with cursor failed
      Error: Printing Stack Trace
          at printStackTrace (src/mongo/shell/utils.js:38:15)
          at doassert (src/mongo/shell/assert.js:6:5)
          at Function.assert.commandWorked (src/mongo/shell/assert.js:238:5)
          at DBCollection.aggregate (src/mongo/shell/collection.js:907:12)
          at (shell):1:13
      2013-10-16T14:33:44.254-0700 command failed: { "ok" : 0, "errmsg" : "unrecognized field \"cursor" } : aggregate with cursor failed at src/mongo/shell/assert.js:7

      This should be clearly stated on the aggregate command helper page, and the release notes as well.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 18 weeks ago