Investigate if `getEncryptionInformation() check` can be removed in query stats

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      To avoid recording queries with encrypted fields, we check
      `getEncryptionInformation()` before registering a request in query stats:

      But in the registerRequest(), we also check `isFLE2StateCollection`

      https://github.com/mongodb/mongo/blob/63ddb00dff570d5d9519c5f3750624c4b660b4f8/src/mongo/db/query/query_stats/query_stats.cpp#L339-L342

      We should investigate if the check on getEncryptionInformation() is still necessary. If not, we can remove the checks in find/agg/update commands.

            Assignee:
            Unassigned
            Reporter:
            Chi-I Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: