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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platforms 2018-05-07

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: