[SERVER-38601] Add regression test for memory leak during planning Created: 13/Dec/18  Updated: 29/Oct/23  Resolved: 14/Dec/18

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.4.19, 3.6.10, 4.0.6, 4.1.7

Type: Task 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:
Backports
Related
related to SERVER-35455 QueryPlannerAccess should hold owned ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0, v3.6, v3.4
Sprint: Query 2018-12-31
Participants:

 Description   

Recently we discovered a memory leak during planning where a partial plan is built for a subtree of the query, then we later find that we cannot index another branch of the query and discard the larger plan in a way that leaks the partial plan.

This is known to be fixed by SERVER-35455 so this is simply adding a regression test that we can use to verify the fix on older branches while backporting SERVER-35455.



 Comments   
Comment by Githook User [ 20/Dec/18 ]

Author:

{'username': 'cswanson310', 'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson'}

Message: SERVER-38601 Add regression test for SERVER-35455

(cherry picked from commit 5b736830826eca2cc36f4c6e2ebbcaf524e9c5e0)
Branch: v4.0
https://github.com/mongodb/mongo/commit/84d5a90f500bdf851bcdaa43a21435411c78975b

Comment by Githook User [ 20/Dec/18 ]

Author:

{'username': 'cswanson310', 'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson'}

Message: Targeted fix for reproduction script for SERVER-38601

The patch for SERVER-35455 did not apply cleanly to this branch so
instead we pursued this more targeted fix for the leak described in
SERVER-38601.
Branch: v3.4
https://github.com/mongodb/mongo/commit/63a529c95e65197227c158667b520ee9777024c5

Comment by Githook User [ 20/Dec/18 ]

Author:

{'username': 'cswanson310', 'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson'}

Message: SERVER-38601 Add regression test for SERVER-35455

(cherry picked from commit 5b736830826eca2cc36f4c6e2ebbcaf524e9c5e0)
(cherry picked from commit 8b4693170a7e5f640057a8532a9f92753ff3fb99)
(cherry picked from commit e4a68bba3602f5e295d6e2949cc4db749e752d27)
Branch: v3.4
https://github.com/mongodb/mongo/commit/ef51ce0672dde933164fba1fc4f7ecf53c77b378

Comment by Githook User [ 18/Dec/18 ]

Author:

{'username': 'cswanson310', 'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson'}

Message: SERVER-38601 Add regression test for SERVER-35455

(cherry picked from commit 5b736830826eca2cc36f4c6e2ebbcaf524e9c5e0)
(cherry picked from commit 8b4693170a7e5f640057a8532a9f92753ff3fb99)
(cherry picked from commit e4a68bba3602f5e295d6e2949cc4db749e752d27)
Branch: v3.6
https://github.com/mongodb/mongo/commit/67dab95118ab0d92908ff413d8667277298b1ba2

Comment by Githook User [ 14/Dec/18 ]

Author:

{'username': 'cswanson310', 'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson'}

Message: SERVER-38601 Add regression test for SERVER-35455
Branch: master
https://github.com/mongodb/mongo/commit/3c20ed9fae8695f105c1068524997b92638ab58a

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