io.vertx.oracleclient.impl.OracleJdbcConnection.isValid() returns allways true.
@Override
public boolean isValid() {
return true;
}
Please implement by delegating to the oracle.jdbc.OracleConnection. So calling connection.isValid() you get the JDBC4 compliant result the Oracle JDBC driver delivers, which is much. more efficient than any alternative i.e. calling some table called dual!
@Override
public boolean isValid() {
return connection.isValid(oracle.jdbc.OracleConnection.ConnectionValidation.SOCKET, 0);
}
In order to speedup health check using isValid() it might be good to put the following property to the defaults:
quarkus.datasource.reactive.additional-properties.connectionProperties=oracle.jdbc.defaultConnectionValidation=SOCKET
vertx-sql-client/vertx-oracle-client/src/main/java/io/vertx/oracleclient/impl/OracleJdbcConnection.java
Line 106 in 3417c5a
io.vertx.oracleclient.impl.OracleJdbcConnection.isValid() returns allways true.
Please implement by delegating to the oracle.jdbc.OracleConnection. So calling connection.isValid() you get the JDBC4 compliant result the Oracle JDBC driver delivers, which is much. more efficient than any alternative i.e. calling some table called
dual!In order to speedup health check using isValid() it might be good to put the following property to the defaults: