[SERVER-44174] $push and $addToSet should restrict memory usage Created: 23/Oct/19 Updated: 29/Oct/23 Resolved: 09/Nov/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.17, 4.3.1, 4.2.3, 4.0.14 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Charlie Swanson | Assignee: | Charlie Swanson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||
| Backport Requested: |
v4.2, v4.0, v3.6, v3.4
|
||||||||||||||||||||||||||||||||||||
| Sprint: | Query 2019-11-18 | ||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||||||||||||||
| Description |
|
SERVER-43944 describes a more pervasive problem, but it's probably the case that $push and $addToSet are the worst offenders and not too difficult to fix. Let's start with those two and leave SERVER-43944 to track the more general problem which is likely more complex. |
| Comments |
| Comment by Charlie Swanson [ 29/Jan/20 ] | ||
|
Hi andrii.litvinov@gmail.com. Yes, in
| ||
| Comment by Andrii Litvinov [ 29/Jan/20 ] | ||
|
Hi, we upgraded to MongoDB 4.2.3 and now facing issue:
even though we use aggregation
Is there any way to increase the limit so that our aggregation can run successfully as it was before? | ||
| Comment by Githook User [ 10/Dec/19 ] | ||
|
Author: {'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson', 'username': 'cswanson310'}Message: (cherry picked from commit 504b518b9bd432a1d614d06f004712e70a1a754b) | ||
| Comment by Githook User [ 09/Dec/19 ] | ||
|
Author: {'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson', 'username': 'cswanson310'}Message: (cherry picked from commit 504b518b9bd432a1d614d06f004712e70a1a754b) | ||
| Comment by Githook User [ 09/Dec/19 ] | ||
|
Author: {'name': 'Charlie Swanson', 'username': 'cswanson310', 'email': 'charlie.swanson@mongodb.com'}Message: (cherry picked from commit 504b518b9bd432a1d614d06f004712e70a1a754b) | ||
| Comment by Githook User [ 09/Nov/19 ] | ||
|
Author: {'username': 'cswanson310', 'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson'}Message: |