[SERVER-78328] Make query_stats_passthrough only report errors from queries in the current test Created: 22/Jun/23  Updated: 29/Oct/23  Resolved: 26/Jun/23

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

Type: Improvement Priority: Major - P3
Reporter: Davis Haupt (Inactive) Assignee: Davis Haupt (Inactive)
Resolution: Fixed Votes: 0
Labels: greenerbuild
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: QO 2023-06-26
Participants:
Linked BF Score: 5

 Description   

BF-29108 has BFGs attached from tons of different tests, even though the error itself only has to do with $geoNear queries. This is because the query stats store is not cleared between tests, and so when we call $queryStats from the background job, we're re-parsing queries from previous tests that ran in the suite. We should modify the suite to:
1. Always call $queryStats after a test has completed before moving on to the next test
2. Clear the query stats store after a test has completed before moving on to the next test



 Comments   
Comment by Githook User [ 26/Jun/23 ]

Author:

{'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}

Message: SERVER-78328 Make RunQueryStats hook run in the main thread after every test
Branch: master
https://github.com/mongodb/mongo/commit/785e000ff06c5d2cf4a0e739be0a10721d2b3dba

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