[SERVER-50284] See if there is a better alternative to using ValueGuard in SBE tests Created: 13/Aug/20  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Drew Paroski Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: qexec-team, sbe-post-v1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

In the course of working on SERVER-49226 and SERVER-49225 (which introduced some new unittest frameworks for SBE), there were some questions about the best way to manage the lifetime of SBE values and ensure they are freed at the appropriate time when writing unittests (with a particular interest in RAII mechanisms).

At present, there are a number of places where the ValueGuard class (an RAII mechanism) is being used ensure SBE values are freed at the appropriate time, and SBE value lifetime is managed using manual logic around call sites (for an example of this, see runTest() in "sbe_plan_stage_test.cpp").

The goal of this task is to explore whether we can do better.


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