Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-77497

Support BulkWrite with FLE2 on mongos

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-07-10, Repl 2023-08-07, Repl 2023-08-21

      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.

            Assignee:
            frederic.vitzikam@mongodb.com Frederic Vitzikam (Inactive)
            Reporter:
            frederic.vitzikam@mongodb.com Frederic Vitzikam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: