summaryrefslogtreecommitdiffstats
path: root/vespa-feed-client
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2024-05-21 13:35:43 +0200
committerGitHub <noreply@github.com>2024-05-21 13:35:43 +0200
commit164b13e922218d9390744c0861d44420e491617d (patch)
tree64edb4b2053abd647e0b1f6f046b0fd1317955e6 /vespa-feed-client
parent7b80287b241677c19ec165c9804b01d0e0ac0c4c (diff)
Fix nanos -> millis in log message
Diffstat (limited to 'vespa-feed-client')
-rw-r--r--vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/GracePeriodCircuitBreaker.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/GracePeriodCircuitBreaker.java b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/GracePeriodCircuitBreaker.java
index 578925e5b2d..cec7106403e 100644
--- a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/GracePeriodCircuitBreaker.java
+++ b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/GracePeriodCircuitBreaker.java
@@ -90,12 +90,12 @@ public class GracePeriodCircuitBreaker implements FeedClient.CircuitBreaker {
long failingNanos = nanoClock.getAsLong() - failingSinceNanos.get();
if (failingNanos > graceNanos && halfOpen.compareAndSet(false, true))
log.log(INFO, "Circuit breaker is now half-open, as no requests have succeeded for the " +
- "last " + failingNanos / 1000 + "ms. The server will be pinged to see if it recovers" +
- (doomNanos >= 0 ? ", but this client will give up if no successes are observed within " + doomNanos / 1000 + "ms" : "") +
+ "last " + failingNanos / 1_000_000 + "ms. The server will be pinged to see if it recovers" +
+ (doomNanos >= 0 ? ", but this client will give up if no successes are observed within " + doomNanos / 1_000_000 + "ms" : "") +
". First failure was '" + detail.get() + "'.");
if (doomNanos >= 0 && failingNanos > doomNanos && open.compareAndSet(false, true))
- log.log(WARNING, "Circuit breaker is now open, after " + doomNanos / 1000 + "ms of failing request, " +
+ log.log(WARNING, "Circuit breaker is now open, after " + doomNanos / 1_000_000 + "ms of failing request, " +
"and this client will give up and abort its remaining feed operations.");
return open.get() ? State.OPEN : halfOpen.get() ? State.HALF_OPEN : State.CLOSED;