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
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void start() {
this.subscription = Flux.interval(this.interval)
.doOnSubscribe((s) -> log.debug("Scheduled {}-check every {}", this.name, this.interval))
.log(log.getName(), Level.FINEST).subscribeOn(this.scheduler).concatMap((i) -> this.checkAllInstances())
.retryWhen(Retry.indefinitely()
.retryWhen(Retry.backoff(Long.MAX_VALUE, Duration.ofSeconds(1))
.doBeforeRetry((s) -> log.warn("Unexpected error in {}-check", this.name, s.failure())))
.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void should_check_after_error() throws InterruptedException {
when(this.checkFn.apply(any())).thenReturn(Mono.error(new RuntimeException("Test"))).thenReturn(Mono.empty());

this.intervalCheck.start();
Thread.sleep(100);
Thread.sleep(1500);
verify(this.checkFn, atLeast(2)).apply(InstanceId.of("Test"));
}

Expand Down