Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12608

Docs for SERVER-39175: Transactional bulkWrite error missing writeErrors (mongos)

    XMLWordPrintable

Details

    Description

      Description

      Description:

      Write errors while in a transaction is now reported as part of the write error field as opposed to the top level error. This is true for both mongod and mongos. Because of how we aggressively bail out early when encountering an error during a transaction, it is now possible (for the first time, I think) for (# of writeError + # of writeSucceeded) < nWritesInRequest, even for unordered writes.

      Engineering Ticket Description:

      Followup to SERVER-38583: when a write error occurs in a multi-statement transaction, report the error in the same format as if it failed outside of a transaction. Today, the mongos reply for write error in a transaction includes ok: 0 and the error is at the top level. It should reply with include ok: 1 and a writeErrors array, the same as it does outside a transaction.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Issue Links

          Activity

            People

              kay.kim@mongodb.com Kay Kim (Inactive)
              kay.kim@mongodb.com Kay Kim (Inactive)
              Kay Kim Kay Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 5 weeks, 2 days ago