[SERVER-13318] Update stats are incorrect after an error Created: 22/Mar/14  Updated: 01/Jun/16  Resolved: 01/Jun/16

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

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: David Storch
Resolution: Duplicate Votes: 0
Labels: metrics, stats, update
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-15292 Failed update reports erroneous Write... Backlog
Related
is related to SERVER-13317 $unset should get an error on negativ... Closed
Operating System: ALL
Participants:

 Description   

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).



 Comments   
Comment by David Storch [ 01/Jun/16 ]

SERVER-15292 duplicates this ticket. Closing this one as a dup, since the newer ticket has a bit more context and is more up-to-date.

Generated at Thu Feb 08 03:31:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.