-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Support nModified being optional in bulk write response #1823
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
Conversation
|
Hi @lukestephenson, thanks for the PR - do you have any example code that reproduces this issue? Ross |
|
Hi @rozza . I wasn't able to come up with a test which replicates this issue. Our CI tests make use of testcontainers and I was never able to see this issue with the tests I have. I'm not sure why. However, in our deployed environment using an actual mongodb cluster, it was very easy to reproduce when our application ran (and with this change patched into the deployment, it didn't fail). The server details are: The way I debugged this issue was to turn on logging of Note how the first response includes the |
|
It's also worth noting we are doing: Note that without |
rozza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Let's not lose track of this issue. That shouldn't happen. |
|
Thanks @lukestephenson for the PR. Turned out to be a server issue / edge case. This fix has been merged into main and will be released in due course. |
Thanks for bringing this to our attention @lukestephenson. It’s also connected to a server-side issue tracked here: SERVER-113344. |
We saw issues with bulk writes failing to parse the response because
nModifiedappears to be optional. I'm not sure why the mongodb cluster sometimes includes it on the response and other times omits it.This appears to be handled already by other drivers:
JAVA-5986