[MONGOCRYPT-427] Fix explain for FLE1 with csfle and FLE2 Created: 09/May/22  Updated: 28/Oct/23  Resolved: 16/May/22

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: 1.5.0-alpha1
Fix Version/s: 1.5.0-alpha2, 1.5.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-66508 Make explain handling consistent betw... Closed
Binding Changes: Not Needed

 Description   

Background & Motivation
See slack conversation:

A libmongocrypt encryption context for

{
  explain: { find: 'fle2', filter: {}, skip: 0, limit: 0, maxTimeMS: 60000 },
  verbosity: 'allPlansExecution'
}

fails with

csfle "analyze_query" failed: BSON field 'explain.encryptionInformation' is an unknown field. [Error 2, code 40415]

Scope

  • Append encryptionInformation to "explain" subdocument, not the root document, for the "explain" command.


 Comments   
Comment by Githook User [ 23/May/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: do not skip explain (#1004)

Explain is now supported when using csfle with changes of MONGOCRYPT-427.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/a63b8efb4f37669112ad48e60ff9cec9ea2c9532

Comment by Githook User [ 16/May/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-427 Fix explain (#337)
Branch: master
https://github.com/mongodb/libmongocrypt/commit/929c000fbf0551900eeb87aa5884a2710cae7e55

Generated at Thu Feb 08 09:08:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.