Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.1.0
-
None
-
Mac OSX
-
OS X
Description
Assuming the following data:
{
title : "this is my title" ,
author : "bob" ,
posted : new Date() ,
pageViews : 5 ,
tags : [ "fun" , "good" , "fun" ] ,
comments : [
,
],
other :
}
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.
Attachments
Issue Links
- is duplicated by
-
SERVER-5252 server fails on some request
-
- Closed
-