diff options
author | Martin Polden <mpolden@mpolden.no> | 2018-05-22 20:56:44 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2018-05-22 20:56:44 +0200 |
commit | d8615dfa9eaa188512055ee9ad1ad4c8e9b202c6 (patch) | |
tree | b9a0d05ffc672452ecce324ece9b90224794b08d /controller-server/src/main/java | |
parent | ecfc56c93befe391dcc5ee2f671f4a6fe9a2bbbc (diff) |
Ignore host applications until ready
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) { |