summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2019-11-04 10:28:46 +0100
committerJon Marius Venstad <venstad@gmail.com>2019-11-04 10:28:46 +0100
commit1fb8ad0c9eea7b096f85251e17a7d6b2ad3e1177 (patch)
tree582206be8df73e851c720454b273ce462c270a72 /controller-server
parent1c7999b7258e5c9a46f55c046715c20b624ea814 (diff)
Change complete when _all_ instances have it, not _any_
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/DeploymentTrigger.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/DeploymentTrigger.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/DeploymentTrigger.java
index 9573f5d07f5..359374e8575 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/DeploymentTrigger.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/DeploymentTrigger.java
@@ -565,13 +565,13 @@ public class DeploymentTrigger {
: steps.productionJobs();
Change change = application.change();
- for (Instance instance : application.instances().values()) {
- if (jobs.stream().allMatch(job -> isComplete(application.change().withoutApplication(), application.change(), instance, job)))
+ if (application.instances().values().stream().allMatch(instance ->
+ jobs.stream().allMatch(job -> isComplete(application.change().withoutApplication(), application.change(), instance, job))))
change = change.withoutPlatform();
- if (jobs.stream().allMatch(job -> isComplete(application.change().withoutPlatform(), application.change(), instance, job)))
+ if (application.instances().values().stream().allMatch(instance ->
+ jobs.stream().allMatch(job -> isComplete(application.change().withoutPlatform(), application.change(), instance, job))))
change = change.withoutApplication();
- }
return change;
}