Skip to content

Conversation

@AbdelrahmanHafez
Copy link
Collaborator

No description provided.

client.on('serverDescriptionChanged', ev => {
const newDescription = ev.newDescription;
if (newDescription.type === 'Standalone') {
if (newDescription.type === 'Standalone' || newDescription.type === 'Unknown') {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator

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.

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I upgraded to [email protected] in master, so this PR is no longer necessary. Thanks 👍

@vkarpov15 vkarpov15 closed this May 21, 2021
vkarpov15 added a commit that referenced this pull request May 21, 2021
@AbdelrahmanHafez AbdelrahmanHafez deleted the patch-10 branch May 22, 2021 23:29
This was referenced Jul 14, 2021
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.

2 participants