-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Close server/pool in LoadBalancedCluster
and LoadBalancedServer
respectively
#720
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
…espectively JAVA-4178
driver-core/src/main/com/mongodb/internal/connection/LoadBalancedCluster.java
Outdated
Show resolved
Hide resolved
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
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.
Good catch. Did you find the bug just by code inspection?
I think it would be possible to write a unit test asserting this behavior. What do you think?
Yes.
Added the test in f899e16. |
driver-core/src/test/unit/com/mongodb/internal/connection/LoadBalancedClusterTest.java
Show resolved
Hide resolved
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. Thanks for adding the tests.
JAVA-4178