-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.4.0, 5.0.0, 6.0.0, 7.0.0-rc0
-
Component/s: None
-
None
-
Query Execution
-
ALL
-
QE 2023-07-24
DeleteStage handles WriteConflictExceptions/TemporarilyUnavailableExceptions when restoring its children state by returning NEED_YIELD. If the stage needs to return the deleted document, it annotates it on `_idReturning` so that on the next `doWork` it is returned. However, if the delete was "justOne: true", the next `doWork` will immediately return EOF instead of the pending document.
If this happened, findAndModify would delete the document but not return it.
- related to
-
SERVER-78470 Prevent multi-false UpdateStage/DeleteStage from provoking yield after having already written
- Closed