summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2020-03-06 10:20:49 +0100
committerJon Bratseth <bratseth@verizonmedia.com>2020-03-06 10:20:49 +0100
commit60ec6f8dff82b9d14b098f269e077a42ed6e23fd (patch)
tree09539cf64c01f30faca560bef8d52e4bb36808da
parentf8337f300ffd1673e9fc0f8ec03a38363136dfcc (diff)
Filter out tester apps
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/Maintainer.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/Maintainer.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/Maintainer.java
index 27fba9e8f8e..71de5931e28 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/Maintainer.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/Maintainer.java
@@ -80,10 +80,12 @@ public abstract class Maintainer extends AbstractComponent implements Runnable {
private String name() { return this.getClass().getSimpleName(); }
- /** A utility to group active tenant applications by application */
+ /** A utility to group active tenant nodes by application */
protected Map<ApplicationId, List<Node>> activeNodesByApplication() {
return nodeRepository().list().nodeType(NodeType.tenant).state(Node.State.active).asList()
- .stream().collect(Collectors.groupingBy(n -> n.allocation().get().owner()));
+ .stream()
+ .filter(node -> ! node.allocation().get().owner().instance().isTester())
+ .collect(Collectors.groupingBy(node -> node.allocation().get().owner()));
}
static long staggeredDelay(List<HostName> cluster, HostName host, Instant now, Duration interval) {