GODRIVER-4204Backlog

Preserve the error chain from InsertMany, BulkWrite, and ClientBulkWrite

h3. *Context* GODRIVER-4172 makes {{mongo.WriteException}} a wrapper: {{processWriteError}} now wraps the error chain it was handed instead of replacing it. However, {{InsertMany}}, {{BulkWrite}} and {{ClientBulkWrite}} build their own error values, either never calling {{processWriteError}}, or calling it and then copying fields out of the returned {{WriteException}} into a fresh exception value, discarding the chain. Note that {{bulkWrite.execute}} and {{clientBulkWrite.execute}} are in

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.