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

Refactor errors thrown from bulkWrite and monomorphicBulkWrite APIs #87

Open
tachyonics opened this issue Feb 14, 2023 · 0 comments
Open

Comments

@tachyonics
Copy link
Contributor

Context-

knovichikhin 7 hours ago
Just an FYI, the problem with monomorphicBulkWrite and, I presume, with this one is that it's not possible to tell what statement did not execute. The reason for that is the thrown exception includes only failed items and not all items. If it were to return all items with OK/Failure status then it's possible to retry on failed items. But these response items have to match by either index or some kind of key.

@knovichikhin 7 hours ago
It's more of an underlying problem. It's possible to work around this for inserts. It's harder for updates because updates are not idempotent (due to list append).

tachyonics 7 hours ago
I did see that but it made sense to keep the same behaviour as monomorphicBulkWrite. We should address it in the next major version. I will create an issue for this.

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

No branches or pull requests

1 participant