[SERVER-81637] Trial metrics should use boost::optional instead of 0 to indicate metric is not tracked Created: 02/Oct/23  Updated: 13/Nov/23

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

Type: Improvement Priority: Major - P3
Reporter: Matt Boros Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-79088 Improve SBE multi-planner performance... Closed
Assigned Teams:
Query Execution
Participants:

 Description   

We set maxMetrics to 0 to indicate a metric is not tracked in TrialRunTracker. This is bug-prone, and has led to issues such as SERVER-79088. There's no reason to use 0 instead of boost::none, so let's change this to avoid future bugs.


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