-
Notifications
You must be signed in to change notification settings - Fork 916
GODRIVER-2037 Don't clear the connection pool on client-side connect timeout errors. #688
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d5619e4
GODRIVER-2037 Don't clear the connection pool on connect timeout erro…
matthewdale c573b2b
Improve comment correctness and add a test case for context error wit…
matthewdale 5db858a
Handle context cancellation and improve comment correctness.
matthewdale ddacfd0
Simplify tests and fix comments.
matthewdale b067477
Fix race condition between net deadline and context timeout in handsh…
matthewdale 4c010b7
Add a test for connection error due to operation context cancellation.
matthewdale e9db64b
Fix linter errors by moving context to be first argument of connectio…
matthewdale cb623e6
Add testPoolMonitor helper IsPoolCleared() and correct comments.
matthewdale 2cc0fe3
Add comments and TODOs to topology tests.
matthewdale File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Oh very nice. Optional: should this be in a separate file, like
connection_pool_helpers_test.go
? ThoughisPoolCleared
was used by other files, the name of this file suggests it is only for the tests specified in https://github.com/mongodb/specifications/blob/master/source/connections-survive-step-down/tests/README.rstUh oh!
There was an error while loading. Please reload this page.
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.
Yeah, I wanted to locate it "next to" the existing
poolMonitor
so that there aren't two implementations of the same thing in different places. I think thetestPoolMonitor
could actually be a good candidate for a "test utilities" package because numerous test packages need to record events (including theServer
tests added in this PR). However, I'm not sure it's worth moving into a separate file until we want to move it into a test utilities package, which probably shouldn't be part of this PR.I've added investigating moving
testPoolMonitor
to a shared test utilities package to the description of GODRIVER-2068..