[SERVER-74461] Filter QE collections form CollStats Created: 28/Feb/23  Updated: 29/Oct/23  Resolved: 17/Mar/23

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

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Adrian Gonzalez Montemayor
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Security 2023-03-06, Security 2023-03-20
Participants:

 Description   

Modify _appendRecordStore to not append the “wiredtiger” document if the collection is a user QE collection or QE state collection
In DocumentSourceCollStats::makeStatsForNs, modify the code to omit calls to appendLatencyStats and appendQueryExecStats if the user requests the information and collection is a user QE collection or QE state collection.

Example User QE Collection filtering code:
https://github.com/mongodb/mongo/blob/893833c073e0b507ba834fe97f544e27d88751c6/src/mongo/db/commands/find_cmd.cpp#L575-L581

Example QE state collection filtering code:
https://github.com/mongodb/mongo/blob/2091bc8a02bc884e8df85fb02f706aac18b6278e/src/mongo/db/query/telemetry.cpp#L387-L390

Also omit this information from:
$collstats - omit “wiredTiger”, “queryExecStats” and “latencyStats” fields.
$_internalAllCollectionStats - omit “wiredTiger”, “queryExecStats” and “latencyStats” fields.



 Comments   
Comment by Githook User [ 16/Mar/23 ]

Author:

{'name': 'Adrian Gonzalez', 'email': 'adriangonzalezmontemayor@gmail.com', 'username': 'adriangzz'}

Message: SERVER-74461 Filter QE collections form CollStats
Branch: master
https://github.com/mongodb/mongo/commit/e139a99e11c580c368994161760ea390faf02fc4

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