Skip to content

Commit 5038420

Browse files
author
Manfred Baedke
committed
OAK-11429: mvn test -Prdb-db2 -Dnsfixtures=DOCUMENT_RDB -Drdb.jdbc-url=jdbc:db2://localhost:50000/OAK -Drdb.jdbc-user=oak -Drdb.jdbc-passwd=geheim -Drdb.docker-image=icr.io/db2_community/db2:11.5.9.0 -Drdb.docker-env='LICENSE=accept,DB2INSTANCE=oak,DB2INST1_PASSWORD=geheim,DBNAME=oak' -Dmax.jar.size=200000000 -Doak.skipMongo -Dtest=CacheConsistencyRDBTest
Improved connection validity check.
1 parent 470fda4 commit 5038420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/RdbConnectionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class RdbConnectionUtils {
8787
for (int k = 0; k < 30 && !containerReady; k++) {
8888
Thread.sleep(10000);
8989
try (Connection connection = dataSource.getConnection()) {
90-
if (!connection.isClosed()) {
90+
if (connection.isValid(10)) {
9191
containerReady = true;
9292
}
9393
} catch (SQLException expected) {

0 commit comments

Comments
 (0)