[SERVER-72936] Implement v2 changes to Queryable Encryption Compact Created: 17/Jan/23  Updated: 29/Oct/23  Resolved: 25/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Erwin Pe Assignee: Erwin Pe
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Sprint: Security 2023-03-20, Security 2023-04-03
Participants:
Linked BF Score: 67

 Description   

In v2 of the QE protocol, the compactStructuredEncryptionData command changed behavior and so the following changes must be made:

  • the code to compact the ECC can be removed
  • compaction of the ESC entries for each unique field+value+contention combination now occurs in its own transaction.
  • a subset, P,  of non-anchor ESC document _ids must be read into memory, before starting any ESC compaction transaction.
  • once all ESC compactions are finished, for each _id in P, delete the document with that _id in ESC.


 Comments   
Comment by Githook User [ 27/Mar/23 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-72936 Implement v2 changes to Queryable Encryption Compact
Branch: master
https://github.com/mongodb/mongo/commit/b72db73ce0aecc6ec8e96eddee28a3ade701ac63

Comment by Githook User [ 24/Mar/23 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-72936 Implement v2 changes to Queryable Encryption Compact
Branch: master
https://github.com/mongodb/mongo/commit/1c517d15f31869f8b0baa7d92d72ea09986cb273

Generated at Thu Feb 08 06:23:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.