[SERVER-58127] Fix benchRun() memory leak for parsing benchRun() args under exception Created: 28/Jun/21  Updated: 29/Oct/23  Resolved: 20/Jul/21

Status: Closed
Project: Core Server
Component/s: Query Execution
Affects Version/s: 4.2.14, 4.4.6, 4.0.25, 5.0.0-rc4
Fix Version/s: 4.2.16, 4.4.8, 5.0.2, 4.0.27

Type: Bug Priority: Minor - P4
Reporter: Yoon Soo Kim Assignee: Yoon Soo Kim
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Query Execution 2021-07-26
Participants:
Linked BF Score: 62

 Description   

SERVER-57897's new test case benchrun_read_pref_mode.js just exposed the existing benchRun() memory leak under exception. The memory leak has been fixed at master. The following code should be ported to v5.0/v4.4/v4.2/v4.0.

https://github.com/mongodb/mongo/blob/master/src/mongo/shell/bench.cpp#L386-L390

Lowering the priority to minor since it's an existing memory leak, not a regression.

And this should not be a blocker for any releases.



 Comments   
Comment by Ethan Zhang (Inactive) [ 15/Jul/21 ]

Waiting for the 5.0 branch to open.

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