Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
Security 2023-03-06, Security 2023-03-20
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.