Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6338

Implement Client Bulk Write Error Handling

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.10.0
    • 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.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            durran.jordan@mongodb.com Durran Jordan
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: