We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ef5be commit cd63e16Copy full SHA for cd63e16
driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java
@@ -164,6 +164,11 @@ public void run() {
164
PooledConnection connection = getPooledConnection(getRemainingWaitTime(), MILLISECONDS);
165
openAsync(connection, errHandlingCallback);
166
}
167
+ } catch (MongoTimeoutException e) {
168
+ Exception exception = new MongoTimeoutException(format("Timeout waiting for a pooled connection after %d %s",
169
+ settings.getMaxWaitTime(MILLISECONDS), MILLISECONDS));
170
+ emitCheckOutFailedEvent(exception);
171
+ errHandlingCallback.onResult(null, exception);
172
} catch (Throwable t) {
173
emitCheckOutFailedEvent(t);
174
errHandlingCallback.onResult(null, t);
0 commit comments