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

GODRIVER-1489 Correctly unwrap topology version for monitor check errors #446

Merged

Conversation

divjotarora
Copy link
Contributor

The original code unwrapped ConnectionError to get the actual error which could have a TopologyVersion field, but I realized this is problematic because the error should be re-wrapped when actually creating the server description. This PR introduces a helper function to unwrap and get the TV without modifying the actual error, which is later used to set description.Server.LastError.

@divjotarora divjotarora requested a review from iwysiu July 10, 2020 01:10
@divjotarora divjotarora merged commit 4adba6c into mongodb:master Jul 10, 2020
@divjotarora divjotarora deleted the streamable-unwrap-topo-version branch July 10, 2020 18:08
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