Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frameworks/Java/quarkus/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"display_name": "Quarkus, Vert.x",
"notes": "",
"versus": "Vert.x",
"tags": ["broken"]
"tags": []
},
"reactive-routes-pgclient": {
"json_url": "/json",
Expand Down
4 changes: 4 additions & 0 deletions frameworks/Java/quarkus/vertx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<groupId>io.vertx</groupId>
<artifactId>vertx-pg-client</artifactId>
</dependency>
<dependency>
<groupId>com.ongres.scram</groupId>
<artifactId>client</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.quarkus.benchmark.repository;

import io.quarkus.logging.Log;
import io.vertx.core.Vertx;
import io.vertx.pgclient.PgConnectOptions;
import jakarta.annotation.PreDestroy;
Expand Down Expand Up @@ -36,7 +37,7 @@ PgConnectionPool connectionPool() {
try {
pgConnectionPool = new PgConnectionPool(vertx, pgConnectOptions());
} catch (final Exception e) {
// TODO LOG ME: usually means inability to connect to the database
Log.error("Failed to create pgConnectionPool", e);
} finally {
this.pgConnectionPool = pgConnectionPool;
return pgConnectionPool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public PgConnectionPool(final Vertx vertx, final PgConnectOptions options) {
final AsyncResult<PgClientConnection> ar = completedConnections.get(i);
if (ar == null || ar.failed()) {
forceCloseEstablishedConnections(completedConnections);
throw new IllegalStateException("cannot establish all connections");
throw new IllegalStateException("cannot establish all connections", ar != null ? ar.cause() : null);
} else {
pgConnections.set(i, ar.result());
}
Expand Down
Loading