Use OperationContext with NOOP Session by vbabanin · Pull Request #1733 · mongodb/mongo-java-driver
Expand Up
@@ -253,7 +253,7 @@ static OidcCallback getGcpCallback(final MongoCredential credential) {
@Override
public void reauthenticate(final InternalConnection connection, final OperationContext operationContext) {
assertTrue(connection.opened());
authenticationLoop(connection, connection.getDescription(), operationContext);
authenticationLoop(connection, connection.getDescription(), operationContextWithoutSession(operationContext));
}
@Override Expand All @@ -262,7 +262,7 @@ public void reauthenticateAsync(final InternalConnection connection, final SingleResultCallback<Void> callback) { beginAsync().thenRun(c -> { assertTrue(connection.opened()); authenticationLoopAsync(connection, connection.getDescription(), operationContext, c); authenticationLoopAsync(connection, connection.getDescription(), operationContextWithoutSession(operationContext), c); }).finish(callback); }
Expand Down
@Override Expand All @@ -262,7 +262,7 @@ public void reauthenticateAsync(final InternalConnection connection, final SingleResultCallback<Void> callback) { beginAsync().thenRun(c -> { assertTrue(connection.opened()); authenticationLoopAsync(connection, connection.getDescription(), operationContext, c); authenticationLoopAsync(connection, connection.getDescription(), operationContextWithoutSession(operationContext), c); }).finish(callback); }
Expand Down