nMatched/nModified/etc are not correctly returned if an exception is thrown.
Technical Note:
Changing this will require significant changes to the update api/code. One options is to provide a stats/context where there numbers are kept in the UpdateRequest rather than having it be a return value (which doesn't happen in the exception case), or simply not having any exceptions (which is harder given the code deps).
- duplicates
-
SERVER-15292 Failed update reports erroneous WriteResult
- Backlog
- is related to
-
SERVER-13317 $unset should get an error on negative array indices, like $pop and $pull do
- Closed