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

Update stats are incorrect after an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.5.5
    • Fix Version/s: None
    • Component/s: Write Ops
    • Labels:
    • Operating System:
      ALL

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.storch David Storch
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: