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

Use retryable write for deleteOne operation on fle2_crud.js

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Sharding EMEA 2023-05-01
    • 55

    Description

      Use retryable writes in this deleteOne operation on fle2_crud.js.

      Reasoning: After SERVER-74087, it is possible for deleteOne operations on sharded collections to bubble up a StaleConfig exception to the router after having already deleted one document. The router will have to retry the operation. fle2_crud.js relies on the accuracy of the 'deletedCount' field in the delete command response, so it needs to use retryable writes so that the correct 'deletedCount is reported on the retried operaration.

      Attachments

        Activity

          People

            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: