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

XMLWordPrintableJSON

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

      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 Stearn
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: