Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit ba5f491

Browse files
Revert "Close driver in case verification fails."
This reverts commit 951e818. The revert is necessary as the metrics indicator must not close the driver: The connectivity may be verificable later but when we close the driver here, the instance is closed forever and cannot be reusued.
1 parent 4c9ca6a commit ba5f491

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

neo4j-java-driver-spring-boot-autoconfigure/src/main/java/org/neo4j/driver/springframework/boot/autoconfigure/Neo4jDriverMetricsAutoConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public void bindDataSourcesToRegistry(Map<String, Driver> drivers, MeterRegistry
6969
.thenRunAsync(() -> new Neo4jDriverMetrics(name, driver, Collections.emptyList()).bindTo(registry))
7070
.exceptionally(e -> {
7171
logger.warn("Could not verify connection for " + driver + " and thus not bind to metrics.", e);
72-
driver.close();
7372
return null;
7473
});
7574
});

0 commit comments

Comments
 (0)