[SERVER-13715] Aggregation pipeline execution can fail with $or and blocking sorts Created: 24/Apr/14 Updated: 11/Jul/16 Resolved: 29/Apr/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.6.0 |
| Fix Version/s: | 2.6.2, 2.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | David Storch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Completed: | |||||||||||||
| Participants: | |||||||||||||
| Description |
|
Issue Status as of June 6, 2014 ISSUE SUMMARY USER IMPACT WORKAROUNDS Example: Instead of using this aggregation pipeline:
Insert a $project with the desired fields before the $sort:
AFFECTED VERSIONS FIX VERSION RESOLUTION DETAILS Original description
There is currently no way to get at the detailed error object without altering the code, but it does show that it is trying to do a sort and failing (due to NO_BLOCKING_SORT) after getRunner returned success. Related mongodb-users post: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/mongodb-user/YK_D4lJXysY/IHQxX3_sN8EJ |
| Comments |
| Comment by Githook User [ 15/May/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |
| Comment by Githook User [ 15/May/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: This enforces the error behavior expected by aggregation. |
| Comment by Githook User [ 09/May/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |
| Comment by Will Shaver [ 30/Apr/14 ] |
|
To work around this bug, place a project pipeline operation immediately proceeding the sort call. |
| Comment by Githook User [ 29/Apr/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: This enforces the error behavior expected by aggregation. |