[SERVER-76284] Fix memory leak in window function percentile benchmark Created: 19/Apr/23  Updated: 29/Oct/23  Resolved: 21/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1

Type: Bug Priority: Major - P3
Reporter: Gil Alon Assignee: Gil Alon
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:
v7.0
Sprint: QI 2023-05-01
Participants:
Linked BF Score: 155

 Description   

In the benchmark we instantiate an ExpressionContextForTest and do not explicitly destroy it. Instead we should prefer to instantiate it as an boost::intrusive_ptr.



 Comments   
Comment by Githook User [ 24/Apr/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-76284: Fix memory leak in percentile benchmark test

(cherry picked from commit 80fb5bb7e8c9b6bff0dbce06e9e0207df27eecf2)
Branch: v7.0
https://github.com/mongodb/mongo/commit/7c5a2d529f072bb6c1897bdd3e989bf0dcad2ad9

Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-76284: Fix memory leak in percentile benchmark test
Branch: master
https://github.com/mongodb/mongo/commit/80fb5bb7e8c9b6bff0dbce06e9e0207df27eecf2

Generated at Thu Feb 08 06:32:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.