diff options
author | Ola Aunronning <olaa@yahooinc.com> | 2024-03-15 15:34:19 +0100 |
---|---|---|
committer | Ola Aunronning <olaa@yahooinc.com> | 2024-03-15 15:34:19 +0100 |
commit | 4b969e1828595bd95b80d2b5bfa5512354fbbeb5 (patch) | |
tree | 62fe952f435936c461f2e8ed11a03994d2f3556d | |
parent | 2d32d9a83a2b0db016ae08c3b22c070d096f8bb8 (diff) |
Keep writing suggestion until all readers are gone
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/ApplicationSerializer.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/ApplicationSerializer.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/ApplicationSerializer.java index 0c3a1df0f27..1315207efb8 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/ApplicationSerializer.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/ApplicationSerializer.java @@ -56,6 +56,7 @@ public class ApplicationSerializer { private static final String maxResourcesKey = "max"; private static final String groupSizeKey = "groupSize"; private static final String requiredKey = "required"; + private static final String suggestedKey = "suggested"; private static final String suggestionsKey = "suggestionsKey"; private static final String clusterInfoKey = "clusterInfo"; private static final String bcpDeadlineKey = "bcpDeadline"; @@ -140,6 +141,8 @@ public class ApplicationSerializer { toSlime(cluster.maxResources(), clusterObject.setObject(maxResourcesKey)); toSlime(cluster.groupSize(), clusterObject.setObject(groupSizeKey)); clusterObject.setBool(requiredKey, cluster.required()); + // TODO(olaa): Remove 'suggested' once all configservers have stopped reading entry + toSlime(Autoscaling.empty(), clusterObject.setObject(suggestedKey)); toSlime(cluster.suggestions(), clusterObject.setArray(suggestionsKey)); toSlime(cluster.target(), clusterObject.setObject(targetKey)); if (! cluster.clusterInfo().isEmpty()) |