[SERVER-4508] In new aggregation framework, when execute $unwind for an empty array ([]), got assertion exception ("exception: assertion db/pipeline/document_source_unwind.cpp:165") Created: 16/Dec/11  Updated: 11/Jul/16  Resolved: 30/Dec/11

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Xiaofeng Wu Assignee: Chris Westin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OSX 10.6


Issue Links:
Depends
is depended on by SERVER-447 new aggregation framework Closed
Operating System: OS X
Participants:

 Comments   
Comment by Chris Westin [ 30/Dec/11 ]

Verified the unwinder is no longer necessary in the current implementation of clonePath().

Comment by auto [ 30/Dec/11 ]

Author:

{u'login': u'cwestin', u'name': u'U-tellus\\cwestin', u'email': u'cwestin@10gen.com'}

Message: SERVER-4508
Branch: master
https://github.com/mongodb/mongo/commit/cdb28667df845b9359e6f5127d0aec69d212afb2

Comment by Xiaofeng Wu [ 17/Dec/11 ]

by commented out line 165 for "document_source_unwind.cpp" and recompile, I got this framework to work. Now it handles empty array correctly.

Generated at Thu Feb 08 03:06:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.