-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
upgrade mongodb to v3.6.7 #10265
upgrade mongodb to v3.6.7 #10265
Conversation
@@ -910,7 +910,7 @@ function _setClient(conn, client, options, dbName) { | |||
}); | |||
client.on('serverDescriptionChanged', ev => { | |||
const newDescription = ev.newDescription; | |||
if (newDescription.type === 'Standalone') { | |||
if (newDescription.type === 'Standalone' || newDescription.type === 'Unknown') { |
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.
This is not likely to be the correct fix here, because if the topology description is "Unknown" we shouldn't consider that as "reconnected." Is this to try to work around the 'timeout' issue in the first commit's test failures?
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.
Yes, frankly I am not familiar enough with the connection details, I've been trying to make the tests pass but without luck.
You'd probably be much more efficient at fixing this than me.
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.
@AbdelrahmanHafez I think I identified the issue and opened up a PR in the MongoDB driver. We'll see what they say, I'm not sure whether this was an intentional change or not.
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.
I upgraded to mongodb@3.6.8 in master, so this PR is no longer necessary. Thanks 👍
No description provided.