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

Write concern errors are lost when commands fail by throwing an exception

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platforms 2018-05-07

      In SERVER-25765 we changed mongod to wait for write concern even if the command failed by throwing an exception. If that times out or otherwise fails it adds a "writeConcernError" field to the reply. Unfortunately, the exception handler then resets the reply to empty, removing that field along with any indication that the write concern was not honored.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: