diff options
Diffstat (limited to 'controller-server/src/main/java')
2 files changed, 5 insertions, 3 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/SystemApplication.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/SystemApplication.java index 0d2c9fbda8b..70814ba6508 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/SystemApplication.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/SystemApplication.java @@ -25,7 +25,7 @@ public enum SystemApplication { private final NodeType nodeType; private final List<SystemApplication> prerequisites; - SystemApplication(ApplicationId id, NodeType nodeType, SystemApplication ... prerequisites) { + SystemApplication(ApplicationId id, NodeType nodeType, SystemApplication... prerequisites) { this.id = id; this.nodeType = nodeType; this.prerequisites = Arrays.asList(prerequisites); diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/SystemUpgrader.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/SystemUpgrader.java index 25b501e94fa..4745894f68c 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/SystemUpgrader.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/SystemUpgrader.java @@ -11,6 +11,7 @@ import com.yahoo.vespa.hosted.controller.versions.VespaVersion; import com.yahoo.yolean.Exceptions; import java.time.Duration; +import java.util.Arrays; import java.util.Comparator; import java.util.List; import java.util.Optional; @@ -37,11 +38,12 @@ public class SystemUpgrader extends Maintainer { if (!target.isPresent()) { return; } - converge(SystemApplication.all(), target.get()); + // TODO: Change to SystemApplication.all() once host applications support upgrade + deploy(Arrays.asList(SystemApplication.configServer, SystemApplication.zone), target.get()); } /** Deploy a list of system applications until they converge on the given version */ - private void converge(List<SystemApplication> applications, Version target) { + private void deploy(List<SystemApplication> applications, Version target) { for (List<ZoneId> zones : controller().zoneRegistry().upgradePolicy().asList()) { boolean converged = true; for (SystemApplication application : applications) { |