From d69aeb4ee39c352c87336e617f5d73c58b2faeb8 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Fri, 25 Feb 2022 13:12:13 +0100 Subject: - Use a utility method that recomputes a timeout if VESPA_TIMER_HZ deviates from the default of 1000hz. --- .../main/java/com/yahoo/vespa/config/proxy/RpcConfigSourceClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config-proxy/src') diff --git a/config-proxy/src/main/java/com/yahoo/vespa/config/proxy/RpcConfigSourceClient.java b/config-proxy/src/main/java/com/yahoo/vespa/config/proxy/RpcConfigSourceClient.java index 9fa0a515abc..5ca387b6122 100644 --- a/config-proxy/src/main/java/com/yahoo/vespa/config/proxy/RpcConfigSourceClient.java +++ b/config-proxy/src/main/java/com/yahoo/vespa/config/proxy/RpcConfigSourceClient.java @@ -68,7 +68,7 @@ class RpcConfigSourceClient implements ConfigSourceClient, Runnable { this.memoryCache = new MemoryCache(); this.delayedResponses = new DelayedResponses(); checkConfigSources(); - nextConfigFuture = nextConfigScheduler.scheduleAtFixedRate(this, 0, 10*1000/SystemTimer.detectHz(), MILLISECONDS); + nextConfigFuture = nextConfigScheduler.scheduleAtFixedRate(this, 0, SystemTimer.adjustTimeoutByDetectedHz(10), MILLISECONDS); this.requesters = new JrtConfigRequesters(); DelayedResponseHandler command = new DelayedResponseHandler(delayedResponses, memoryCache, responseHandler); this.delayedResponsesFuture = delayedResponsesScheduler.scheduleAtFixedRate(command, 5, 1, SECONDS); -- cgit v1.2.3