diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2019-09-06 11:32:59 +0200 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2019-09-06 11:32:59 +0200 |
commit | a96722821ee4d52dbe112e0d9da6839dcecccb9d (patch) | |
tree | a599647a99a026614eca23b333cd55f0173816d0 /controller-server | |
parent | 5549ed6df77e23249027fe204a683a15f604fe13 (diff) |
See unfinished run over finished copy when inconsistent state
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java index 3f808f91310..282e83461ea 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobController.java @@ -173,7 +173,7 @@ public class JobController { /** Returns an immutable map of all known runs for the given application and job type. */ public Map<RunId, Run> runs(ApplicationId id, JobType type) { SortedMap<RunId, Run> runs = curator.readHistoricRuns(id, type); - last(id, type).ifPresent(run -> runs.putIfAbsent(run.id(), run)); + last(id, type).ifPresent(run -> runs.put(run.id(), run)); return ImmutableMap.copyOf(runs); } |