[SERVER-5012] Aggregation Framework $project Crashes Server when _Id is Removed in Prior $project Created: 18/Feb/12 Updated: 11/Jul/16 Resolved: 22/Feb/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | 2.1.0 |
| Fix Version/s: | 2.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Frank Tyler | Assignee: | Chris Westin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Mac OSX |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Operating System: | OS X | ||||||||
| Participants: | |||||||||
| Description |
|
Assuming the following data: { , ], db.article.aggregate({ $project : { author : 1}}) ---- This runs fine db.article.aggregate({ $project : { author : 1, _id : 0}}) ---- This also runs fine db.article.aggregate({ $project : { author : 1, _id : 0}}, { $project :{"Writer" : "$author"}}) ---- This crashes the server. After further investigation, it seems when I exclude the _id field in the last $project, things work as expected. db.article.aggregate({ $project : { author : 1}}, { $project :{"Writer" : "$author", _id : 0}}) ---- This works as expected. |
| Comments |
| Comment by auto [ 22/Feb/12 ] |
|
Author: {u'login': u'cwestin', u'name': u'U-tellus\\cwestin', u'email': u'cwestin@10gen.com'}Message: |
| Comment by Frank Tyler [ 18/Feb/12 ] |
|
Server Trace |