summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-12-02 21:25:31 +0100
committerJon Marius Venstad <venstad@gmail.com>2020-12-02 21:25:31 +0100
commit2b4ec517d20e72637ae4b2b92fff1ef0d1f498b6 (patch)
tree9fc2c12211c7d3e3b49fcf954aa29a41bf8b8abb /controller-api
parent909850e18a156de41d519a618c13a388857baa1c (diff)
Status for a cluster may be null
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java
index b6c7899aef1..868d251d7ee 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java
@@ -64,17 +64,17 @@ public class ApplicationReindexing {
public static class Cluster {
- private final Status common;
+ private final Optional<Status> common;
private final Map<String, Long> pending;
private final Map<String, Status> ready;
public Cluster(Status common, Map<String, Long> pending, Map<String, Status> ready) {
- this.common = requireNonNull(common);
+ this.common = Optional.ofNullable(common);
this.pending = Map.copyOf(pending);
this.ready = Map.copyOf(ready);
}
- public Status common() {
+ public Optional<Status> common() {
return common;
}