[SERVER-59759] Add assertions to SBE leaf stages checking that memory doesn't get unpinned Created: 02/Sep/21  Updated: 29/Oct/23  Resolved: 25/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Task Priority: Major - P3
Reporter: Ian Boros Assignee: Ian Boros
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-10-04, Execution Team 2021-10-18, Execution Team 2021-11-01
Participants:

 Description   

To mitigate the risk of hard-to-reproduce BFs coming out of the yielding project, we should add some (debug build only) assertions to the SBE leaf stages which check that the memory owned by the storage layer does not change underneath the query plan between saves()/restores().

We should also make sure a variant exercising this behavior gets run in evergreen.



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

Author:

{'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'borosaurus'}

Message: SERVER-59759 Add debug-only asserts to SBE scan stage

These assertions check that memory owned by the storage layer remain consistent across yields.
Branch: master
https://github.com/mongodb/mongo/commit/598b99c1be1aa389407f25ea773b2e95141e3dd4

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