-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Bulk API
-
Not Needed
AC:
- Implement the ClientBulkWriteError class:
- Ensure top level errors are populated in the error field.
- Ensure write concern errors are populated in the writeConcernErrors field.
- Ensure write errors are populated in the writeErrors field.
- Ensure the ClientBulkWriteResult is populated in the partialResult field.
- Ensure if auto encryption is enabled an error is raised with the message "bulkWrite does not currently support automatic encryption"
- Ensure top level errors halt execution no matter if ordered or unordered.
- Ensure write concern errors do not halt execution.
- Ensure write errors halt execution for ordered bulk writes.
- Ensure write errors do not halt execution for unordered bulk writes.
Test:
- Unskip CRUD unified tests that test error handling.
- Implement CRUD prose tests around error handling.