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

Client-side bulk write errors should not subclass mongo error

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Bulk API, Error

      Use Case

      Any error encountered when executing a bulk write is wrapped in a MongoBulkWriteError. MongoBulkWriteError is a subclass of MongoServerError. There are some cases where the wrapped error is thrown by the driver, not the server, and in these cases we should instead throw an error that doesn't subclass MongoServerError.

      This is relatively minor but it does break the `clientSideError` flag in the unified test runner for bulk write errors because even when a client side error is thrown, it's wrapped in a subclass of MongoServerError.

      User Impact

      • small.

      Dependencies

      • n/a

      Unknowns

      Acceptance Criteria

      Implementation Requirements

      Testing Requirements

      • undo the workaround in `match` in the UTR (it's tagged with this ticket)

      Documentation Requirements

      n/a

      Follow Up Requirements

      n/a

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: