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

Commit 1fa59f4

Browse files
Update to Neo4j Java driver beta03.
1 parent 88b0936 commit 1fa59f4

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/configuration-options.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
|+++Acquisition of new connections will be attempted for at most configured timeout.+++
2727

2828
|`{config_prefix}.config.connection-timeout`
29-
|`5s`
29+
|`30s`
3030
|+++Specify socket connection timeout.+++
3131

3232
|`{config_prefix}.config.encrypted`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Mono<ResultSummary> runHealthCheckQuery() {
6565
// all possible workloads
6666
return Mono.using(
6767
() -> this.driver.rxSession(DEFAULT_SESSION_CONFIG),
68-
session -> Mono.from(session.run(Neo4jHealthIndicator.CYPHER).summary()),
68+
session -> Mono.from(session.run(Neo4jHealthIndicator.CYPHER).consume()),
6969
RxSession::close
7070
);
7171
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public static class DriverSettings {
299299
/**
300300
* Specify socket connection timeout.
301301
*/
302-
private Duration connectionTimeout = Duration.ofSeconds(5);
302+
private Duration connectionTimeout = Duration.ofSeconds(30);
303303

304304
/**
305305
* Specify the maximum time transactions are allowed to retry.

neo4j-java-driver-spring-boot-autoconfigure/src/test/java/org/neo4j/driver/springframework/boot/actuate/Neo4jReactiveHealthIndicatorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Neo4jReactiveHealthIndicatorTest extends Neo4jHealthIndicatorTestBase {
5353
void neo4jIsUp() {
5454

5555
prepareSharedMocks();
56-
when(statementResult.summary()).thenReturn(Mono.just(resultSummary));
56+
when(statementResult.consume()).thenReturn(Mono.just(resultSummary));
5757
when(session.run(anyString())).thenReturn(statementResult);
5858

5959
when(driver.rxSession(any(SessionConfig.class))).thenReturn(session);
@@ -78,7 +78,7 @@ void neo4jSessionIsExpiredOnce() {
7878
AtomicInteger cnt = new AtomicInteger(0);
7979

8080
prepareSharedMocks();
81-
when(statementResult.summary()).thenReturn(Mono.just(resultSummary));
81+
when(statementResult.consume()).thenReturn(Mono.just(resultSummary));
8282
when(session.run(anyString())).thenAnswer(invocation -> {
8383
if (cnt.compareAndSet(0, 1)) {
8484
throw new SessionExpiredException("Session expired");

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<maven-jar-plugin.version>3.1.2</maven-jar-plugin.version>
9999
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
100100
<maven-surefire-plugin.version>3.0.0-M3</maven-surefire-plugin.version>
101-
<neo4j-java-driver.version>4.0.0-beta02</neo4j-java-driver.version>
101+
<neo4j-java-driver.version>4.0.0-beta03</neo4j-java-driver.version>
102102
<neo4j.version>3.5.11</neo4j.version>
103103
<revision>4.0</revision>
104104
<sha1></sha1>

0 commit comments

Comments
 (0)