Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: report writeErrors for bulk ops #48

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

sbalaji1996
Copy link
Contributor

@sbalaji1996 sbalaji1996 commented Apr 16, 2020

Collates the writeErrors reported by bulk operations and returns them in the
result object.

We chose to not do the same for writeConcernErrors, as our testing indicated
that the driver throws on write concern errors rather than returning them.

lib/bulk.js Outdated Show resolved Hide resolved
@sbalaji1996 sbalaji1996 requested a review from shils April 16, 2020 01:32
lib/bulk.js Outdated Show resolved Hide resolved
Collates the `writeErrors` reported by bulk operations and returns them in the
`result` object.

We chose to not do the same for `writeConcernErrors`, as our testing indicated
that the driver throws on write concern errors rather than returning them.
@sbalaji1996 sbalaji1996 changed the title fix: report writeErrors and writeConcernErrors for bulk ops fix: report writeErrors for bulk ops Apr 16, 2020
@sbalaji1996 sbalaji1996 requested a review from shils April 16, 2020 21:11
@shils shils merged commit 0079896 into mongoist:master Apr 16, 2020
@shils
Copy link
Contributor

shils commented Apr 16, 2020

Thanks!

@sbalaji1996 sbalaji1996 deleted the srinand/report-writeerrors branch April 16, 2020 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants