[SERVER-51404] Improve log messages when aggregation stage hits the 100 MB limit Created: 07/Oct/20  Updated: 27/Oct/23  Resolved: 12/Oct/22

Status: Closed
Project: Core Server
Component/s: Diagnostics, Querying
Affects Version/s: 4.4.0
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Dmitry Agranat Assignee: Backlog - Query Execution
Resolution: Gone away Votes: 0
Labels: qopt-team, query-offsite
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-51340 MongoDB $accumulator: MongoError: Out... Closed
Assigned Teams:
Query Execution
Participants:
Case:

 Description   

Currently, when an aggregation stage hits 100 MB limit, we print:

"errMsg": "Out of memory",      "errName": "JSInterpreterFailure",      "errCode": 139

Suggested improvement:

"errMsg" : "Exceeded 100 MB memory limit for <$aggregation stage>, but didn't allow external sort. Pass allowDiskUse:true to opt in."


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