Summary
InĀ CRUD prose test 12, which asserts client-side errors from the first and only write modle, a partial result is still populated in mongoc_bulkwritereturn_t.res. This seemingly runs afoul of the following line in the spec:
Drivers MUST NOT populate the partialResult field in BulkWriteException if it cannot be determined that at least one write was successfully performed.
Looking at mongoc_bulkwrite_execute, this may be due to assuming has_successful_results = true if ret.res->errorscount == 0 for an ordered write. errorscount is only incremented in _bulkwritereturn_apply_reply, which presumably would never have been called.
- is related to
-
CDRIVER-4363 Improved Bulk Write API
-
- Closed
-