Skip to content

Commit 41ca7ca

Browse files
committed
Ensure getting the description doesn't require the pool to be open.
JAVA-3657 JAVA-3616, JAVA-3647
1 parent 1cf5bc7 commit 41ca7ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ public void onResult(final Void result, final Throwable t) {
221221
LOGGER.trace(format("Pooled connection %s to server %s is now open",
222222
pooledConnection.getDescription().getConnectionId(), serverId));
223223
}
224-
callback.onResult(pooledConnection, null);
225224
connectionPoolListener.connectionCheckedOut(
226225
new ConnectionCheckedOutEvent(pooledConnection.getDescription().getConnectionId()));
226+
callback.onResult(pooledConnection, null);
227227
}
228228
}
229229
});
@@ -560,7 +560,6 @@ public void onResult(final ResponseBuffers result, final Throwable t) {
560560

561561
@Override
562562
public ConnectionDescription getDescription() {
563-
isTrue("open", !isClosed.get());
564563
return wrapped.getDescription();
565564
}
566565
}

0 commit comments

Comments
 (0)