Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-74461

Filter QE collections form CollStats

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • 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.

      Attachments

        Activity

          People

            adrian.gonzalez@mongodb.com Adrian Gonzalez Montemayor
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: