[SERVER-76456] Use retryable write for deleteOne operation on fle2_crud.js Created: 24/Apr/23  Updated: 27/Oct/23  Resolved: 22/Jun/23

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

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Sprint: Sharding EMEA 2023-05-01
Participants:
Linked BF Score: 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.



 Comments   
Comment by Jordi Serra Torrens [ 22/Jun/23 ]

Reverted because SERVER-77116 is the proper fix.

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