Log a bit more in request executor
@@ -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;
}
