This commit is contained in:
Phillip Webb 2022-11-30 21:01:03 -08:00
parent e56156c350
commit 8481004420

View File

@ -54,7 +54,7 @@ public final class Neo4jReactiveHealthIndicator extends AbstractReactiveHealthIn
protected Mono<Health> doHealthCheck(Health.Builder builder) { protected Mono<Health> doHealthCheck(Health.Builder builder) {
return runHealthCheckQuery() return runHealthCheckQuery()
.doOnError(SessionExpiredException.class, .doOnError(SessionExpiredException.class,
(e) -> logger.warn(Neo4jHealthIndicator.MESSAGE_SESSION_EXPIRED)) (ex) -> logger.warn(Neo4jHealthIndicator.MESSAGE_SESSION_EXPIRED))
.retryWhen(Retry.max(1).filter(SessionExpiredException.class::isInstance)).map((healthDetails) -> { .retryWhen(Retry.max(1).filter(SessionExpiredException.class::isInstance)).map((healthDetails) -> {
this.healthDetailsHandler.addHealthDetails(builder, healthDetails); this.healthDetailsHandler.addHealthDetails(builder, healthDetails);
return builder.build(); return builder.build();