[SERVER-59613] $range expression should error if it exceeds memory limit Created: 26/Aug/21  Updated: 29/Oct/23  Resolved: 09/Oct/21

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: 4.2.15, 4.0.26, 4.4.8, 5.0.2, 5.1.0-rc0
Fix Version/s: 5.2.0, 4.4.11, 4.2.18, 4.0.28, 5.0.4, 5.1.0-rc1

Type: Bug Priority: Major - P3
Reporter: Kyle Suarez Assignee: Mickey Winters
Resolution: Fixed Votes: 0
Labels: neweng, serverless-impact
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.1, v5.0, v4.4, v4.2, v4.0
Sprint: QE 2021-09-20, QE 2021-10-18
Participants:
Linked BF Score: 15

 Description   

The MongoDB Documentation for aggregation states that

Each individual pipeline stage has a limit of 100 megabytes of RAM.

While not a stage, we should ensure that the $range expression respects limits.



 Comments   
Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}

Message: SERVER-59613 $range expression should error if it exceeds memory limit

(cherry picked from commit ca2053d172076c106c994564b92109d1a973ed81)
Branch: v4.0
https://github.com/mongodb/mongo/commit/21d17ccf68b42fa49dd378f7a084da153ad79d3a

Comment by Githook User [ 24/Oct/21 ]

Author:

{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}

Message: SERVER-59613 $range expression should error if it exceeds memory limit
Branch: v4.2
https://github.com/mongodb/mongo/commit/ca2053d172076c106c994564b92109d1a973ed81

Comment by Githook User [ 20/Oct/21 ]

Author:

{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}

Message: SERVER-59613 $range expression should error if it exceeds memory limit

(cherry picked from commit 3f7016e2c2e746ff4a009750044a9bd14cf6fe6f)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e17453f50625b74c5edaf30a2602e4db764cd240

Comment by Githook User [ 12/Oct/21 ]

Author:

{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}

Message: SERVER-59613 $range expression should error if it exceeds memory limit
Branch: v5.0
https://github.com/mongodb/mongo/commit/3f7016e2c2e746ff4a009750044a9bd14cf6fe6f

Comment by Githook User [ 11/Oct/21 ]

Author:

{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}

Message: SERVER-59613 $range expression should error if it exceeds memory limit

(cherry picked from commit 348a869208b3be1ca9e04f0f998c7ff7e8586873)
Branch: v5.1
https://github.com/mongodb/mongo/commit/66c4ac8fcd9242ece28aab582da7a6c5b1f7733d

Comment by Githook User [ 09/Oct/21 ]

Author:

{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}

Message: SERVER-59613 $range expression should error if it exceeds memory limit
Branch: master
https://github.com/mongodb/mongo/commit/348a869208b3be1ca9e04f0f998c7ff7e8586873

Comment by Ethan Zhang (Inactive) [ 31/Aug/21 ]

kyle.suarez Giving this to you to find an assignee.

We also need request backport for the fix for this ticket.

Generated at Thu Feb 08 05:47:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.