summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2020-07-30 14:43:23 +0200
committerHarald Musum <musum@verizonmedia.com>2020-07-30 14:43:23 +0200
commit3504bc79345dd2c708642eb4cfe3ad64ef97f2e8 (patch)
tree542f617fb7d69ef9b5f1466dc22141ed298d0784 /configserver
parent3197221efc2bec4d764849332bccae9ce43ec934 (diff)
Double timeouts
Seeing quite a few timeouts, try doubling timeouts
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/monitoring/ZKMetricUpdater.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/monitoring/ZKMetricUpdater.java b/configserver/src/main/java/com/yahoo/vespa/config/server/monitoring/ZKMetricUpdater.java
index 52ca73c68b9..401588f478c 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/monitoring/ZKMetricUpdater.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/monitoring/ZKMetricUpdater.java
@@ -36,11 +36,11 @@ public class ZKMetricUpdater implements Runnable {
public static final String METRIC_ZK_CONNECTIONS = getMetricName("zkConnections");
public static final String METRIC_ZK_OUTSTANDING_REQUESTS = getMetricName("zkOutstandingRequests");
- private static final int CONNECTION_TIMEOUT_MS = 500;
- private static final int WRITE_TIMEOUT_MS = 250;
- private static final int READ_TIMEOUT_MS = 500;
+ private static final int CONNECTION_TIMEOUT_MS = 1000;
+ private static final int WRITE_TIMEOUT_MS = 500;
+ private static final int READ_TIMEOUT_MS = 1000;
- private AtomicReference<Map<String, Long>> zkMetrics = new AtomicReference<>(new HashMap<>());
+ private final AtomicReference<Map<String, Long>> zkMetrics = new AtomicReference<>(new HashMap<>());
private final ScheduledExecutorService executorService;
private final int zkPort;
@@ -103,7 +103,7 @@ public class ZKMetricUpdater implements Runnable {
return Optional.of(baos.toString(StandardCharsets.UTF_8));
} catch (IOException | InterruptedException | ExecutionException | TimeoutException e) {
- log.warning("Failure in retrieving monitoring data: (" + e.getClass().getName() + ") " + e.getMessage());
+ log.warning("Failure in retrieving monitoring data: (" + e.getClass().getSimpleName() + ") " + e.getMessage());
return Optional.empty();
}
}