From 00eda613b439d53facdcc3d261b828454446faa0 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Mon, 5 Aug 2019 16:41:40 +0200 Subject: Nonfunctional changes only --- .../com/yahoo/vespa/hosted/provision/maintenance/NodeFailer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'node-repository') diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/NodeFailer.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/NodeFailer.java index a7b750c4e46..ae43a96f9fd 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/NodeFailer.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/NodeFailer.java @@ -290,7 +290,7 @@ public class NodeFailer extends Maintainer { /** * We can attempt to fail any number of *tenant* and *host* nodes because the operation will not be effected * unless the node is replaced. - * We can also attempt to fail a single proxy(host) as there should be enough redudancy to handle that. + * We can also attempt to fail a single proxy(host) as there should be enough redundancy to handle that. * But we refuse to fail out config(host)/controller(host) */ private boolean failAllowedFor(NodeType nodeType) { @@ -307,15 +307,15 @@ public class NodeFailer extends Maintainer { } /** - * Returns true if the node is considered bad: all monitored services services are down. - * If a node remains bad for a long time, the NodeFailer will eventually try to fail the node. + * Returns true if the node is considered bad: All monitored services services are down. + * If a node remains bad for a long time, the NodeFailer will try to fail the node. */ static boolean badNode(List services) { Map countsByStatus = services.stream() .collect(Collectors.groupingBy(ServiceInstance::serviceStatus, counting())); return countsByStatus.getOrDefault(ServiceStatus.UP, 0L) <= 0L && - countsByStatus.getOrDefault(ServiceStatus.DOWN, 0L) > 0L; + countsByStatus.getOrDefault(ServiceStatus.DOWN, 0L) > 0L; } /** -- cgit v1.2.3