summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-12-18 11:15:29 +0100
committerGitHub <noreply@github.com>2021-12-18 11:15:29 +0100
commitb4f5820672908823982c69260a8a5df3163aa236 (patch)
treec199b396d83de3bdfef98e9e62f61c77ac7e9b4b
parentef25899362b81b210b5619706f05cf2c8430e2bd (diff)
parentc841a8c03340d079b63fcd76e29735b78f60bb23 (diff)
Merge pull request #20577 from vespa-engine/hmusum/fix-time-for-last-warning
Fix calculation of initial value of last logged timestamp
-rw-r--r--config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigRequester.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigRequester.java b/config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigRequester.java
index 5f3445d1d8f..604c85555db 100644
--- a/config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigRequester.java
+++ b/config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigRequester.java
@@ -67,8 +67,8 @@ public class JRTConfigRequester implements RequestWaiter {
this.scheduler = scheduler;
this.connectionPool = connectionPool;
this.timingValues = timingValues;
- // Adjust so that we wait 1 second with logging warning in case there are some errors just when starting up
- timeForLastLogWarning = Instant.now().minus(delayBetweenWarnings.plus(Duration.ofSeconds(5)));
+ // Adjust so that we wait 5 seconds with logging warning in case there are some errors just when starting up
+ timeForLastLogWarning = Instant.now().minus(delayBetweenWarnings).plus(Duration.ofSeconds(5));
}
/**