Make findAndModify updateShardKey work with FLE2

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: Queryable Encryption
    • None
    • Fully Compatible
    • Security 2022-07-11, Security 2022-07-25, Security 2022-08-08, Security 2022-08-22
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, when mongos receives a findAndModify command, it occasionally attempts to update the shardKey on the collection. When it attempts to update the findAndModify command, it splits the command into a delete and an insert. However, the encryptionInformation struct is not propagated to the new delete and insert command. We should find a way to pass the relevant information from the encryptionInformation struct into the findAndModify command.

      This will also affect update.

              Assignee:
              Shreyas Kalyan
              Reporter:
              Shreyas Kalyan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: