[SERVER-77497] Support BulkWrite with FLE2 on mongos Created: 25/May/23  Updated: 29/Oct/23  Resolved: 15/Aug/23

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

Type: Task Priority: Major - P3
Reporter: Frederic Vitzikam Assignee: Frederic Vitzikam
Resolution: Fixed Votes: 0
Labels: milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-72768 Support single-op bulkWrite for QE Closed
depends on SERVER-72769 Support batched insert-only bulkWrite... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-07-10, Repl 2023-08-07, Repl 2023-08-21
Participants:

 Description   

FLE2 does updates to side collections ESC and ECOC on an encrypted insert so it can't be handled solely at the mongod level. We need to call processFLEBatch in the BulkWrite mongos code so they can create an internal transaction accordingly and handle the insert/delete/update.

  • mongos should fail any bulkWrite with more than 1 namespace if there is a encryptionInformation in one of the attached nsInfo entry.
  • If there is a single namespace and it has encryptionInformation, then it should delegate to processFLEBatch instead of normal code path.
  • The limitation of SERVER-72768/SERVER-72769 (a single update op or a single delete op or N insert ops) also applies here.


 Comments   
Comment by Githook User [ 15/Aug/23 ]

Author:

{'name': 'Frederic Vitzikam', 'email': 'frederic.vitzikam@mongodb.com', 'username': 'fredvitz'}

Message: SERVER-77497 Support BulkWrite with FLE2 on mongos
Branch: master
https://github.com/mongodb/mongo/commit/f031ac22442caa3665cfce234a6d9d7fd0f6642d

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