sarankk commented on code in PR #148: URL: https://github.com/apache/cassandra-sidecar/pull/148#discussion_r1853105254
########## server/src/main/java/org/apache/cassandra/sidecar/cluster/CQLSessionProviderImpl.java: ########## @@ -137,16 +168,30 @@ public synchronized Session get() driverUtils); // Prevent spurious reconnects of ignored down nodes on `onUp` events QueryOptions queryOptions = new QueryOptions().setReprepareOnUp(false); - cluster = Cluster.builder() - .addContactPointsWithPorts(contactPoints) - .withReconnectionPolicy(reconnectionPolicy) - .withoutMetrics() - .withLoadBalancingPolicy(lbp) - .withQueryOptions(queryOptions) - // tests can create a lot of these Cluster objects, to avoid creating HWTs and - // event thread pools for each we have the override - .withNettyOptions(nettyOptions) - .build(); + Cluster.Builder builder + = Cluster.builder() + .addContactPointsWithPorts(contactPoints) + .withReconnectionPolicy(reconnectionPolicy) + .withoutMetrics() + .withLoadBalancingPolicy(lbp) + .withQueryOptions(queryOptions) + // tests can create a lot of these Cluster objects, to avoid creating HWTs and + // event thread pools for each we have the override + .withNettyOptions(nettyOptions); + + if (username != null && password != null) Review Comment: Driver doesn't allow password to be null. So I think `and` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org