summaryrefslogtreecommitdiffstats
path: root/node-admin
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@yahoo-inc.com>2017-06-18 02:29:25 +0200
committerHåkon Hallingstad <hakon@yahoo-inc.com>2017-06-18 02:29:25 +0200
commit08df5af4be85b9085dc68ca9c099bb8470f0d179 (patch)
treea9931fd0d6fdc7b9efd67012a4facd07b8bd9410 /node-admin
parenta885bb9f851e75f48a033658ab1477acb4326e4f (diff)
Log a bit more in request executor
Diffstat (limited to 'node-admin')
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/util/ConfigServerHttpRequestExecutor.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/util/ConfigServerHttpRequestExecutor.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/util/ConfigServerHttpRequestExecutor.java
index 3358397a724..4434213989f 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/util/ConfigServerHttpRequestExecutor.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/util/ConfigServerHttpRequestExecutor.java
@@ -84,7 +84,12 @@ public class ConfigServerHttpRequestExecutor {
response = client.execute(requestFactory.createRequest(configServer));
} catch (Exception e) {
// Failure to communicate with a config server is not abnormal, as they are
- // upgraded at the same time as Docker hosts. But it is abnormal if all of them are.
+ // upgraded at the same time as Docker hosts.
+ if (e.getMessage().indexOf("(Connection refused)") > 0) {
+ NODE_ADMIN_LOGGER.info("Connection refused to " + configServer + " (upgrading?), will try next");
+ } else {
+ NODE_ADMIN_LOGGER.warning("Failed to communicate with " + configServer + ", will try next: " + e.getMessage());
+ }
lastException = e;
continue;
}