summaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-08-05 16:41:40 +0200
committerJon Bratseth <bratseth@verizonmedia.com>2019-08-05 16:41:40 +0200
commit00eda613b439d53facdcc3d261b828454446faa0 (patch)
treef0d7cc93ed1dfc04b4077367e8361f04306aad63 /node-repository
parent35283b454dfdaa9acbcea24274e01e65d128b7b6 (diff)
Nonfunctional changes only
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/NodeFailer.java8
1 files changed, 4 insertions, 4 deletions
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<ServiceInstance> services) {
Map<ServiceStatus, Long> 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;
}
/**