[DOCS-2098] Aggregation: Clearly document mongo shell 2.6 & mongod 2.4 incompatibility Created: 16/Oct/13  Updated: 11/Jan/17  Resolved: 16/Oct/13

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
Related
related to SERVER-11225 Aggregation as cursor error message m... Closed
Participants:
Days since reply: 10 years, 18 weeks ago

 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.



 Comments   
Comment by auto [ 16/Oct/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2098: note about compatibility change regarding aggregate helper in the shell
Branch: master
https://github.com/mongodb/docs/commit/c98a18f3dd872743127aae05e4df9be440f9eab9

Generated at Thu Feb 08 07:42:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.