-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Rate limit new connection creations (maxConnecting) #685
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
…alization concept JAVA-3927
JAVA-3927
|
If that would be helpful, we may have a call for walking through the code at virtually any time. |
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Outdated
Show resolved
Hide resolved
9c0c4a5 to
4bf5802
Compare
…iled to open a connection JAVA-3927
driver-core/src/test/unit/com/mongodb/internal/connection/AbstractConnectionPoolTest.java
Show resolved
Hide resolved
|
I will soon finish addressing the issues that we discussed over Zoom. Having them checked in will (hopefully) simplify the review process a bit. |
0ae1594 to
0298746
Compare
|
I addressed the test failure on Evergreen in JAVA-4075. It is not related to the changes in this PR. |
….CONNECTION_ERROR JAVA-3927
...core/src/test/unit/com/mongodb/internal/connection/DefaultConnectionPoolSpecification.groovy
Show resolved
Hide resolved
…e lock uninterruptibly JAVA-3927
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.
Its looking good. I have a couple of comments / suggestions regarding the Timeout class.
ab535dc to
f9b6609
Compare
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 looks really good. I have a number of comments but none are major issues.
driver-core/src/main/com/mongodb/event/ConnectionPoolListener.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
Show resolved
Hide resolved
JAVA-3927
JAVA-3927
…nPool.checkoutHandOverMechanism JAVA-3927
JAVA-3927
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.
Looking great. I'm glad the new tests were useful.
Just one open thread about the use of initCause.
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.
LGTM!
JAVA-3927