Query stats for FLE2 behaves differently between replica sets and sharded clusters

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: Queryable Encryption
    • None
    • Server Security
    • Fully Compatible
    • ALL
    • Server Security 2025-04-28, Server Security 2025-05-09
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      After SERVER-101288, the test shell now uses libmongocrypt to process the encryption of aggregation commands. One change in behavior between the old shell implementation of this processing and libmongocrypt is that the former always includes the "encryptionInformation" field in commands over FLE2 collections, whereas libmongocrypt only includes it if the agg/find command needs it because of encrypted fields being present in the query. This change in behavior broke the existing query_stats_disabled_for_fle2.js test. In particular, the sharded case fails but the replica set case succeeds.

            Assignee:
            Erwin Pe
            Reporter:
            Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: