Skip to content

Commit

Permalink
fix(titus): When logging duplicate Titus jobs get internal Titus job …
Browse files Browse the repository at this point in the history
…model - not protobuf Job model - from server group attributes (#5181)
  • Loading branch information
jonsie committed Jan 7, 2021
1 parent ce55fb9 commit f314b8e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1083,9 +1083,11 @@ private void logDuplicateServerGroups(
.filter(it -> it.getValue().size() > 1)
.forEach(
(entry) -> {
Job cachedJob = null;
com.netflix.spinnaker.clouddriver.titus.client.model.Job cachedJob = null;
try {
cachedJob = (Job) serverGroupCache.get(entry.getKey()).getAttributes().get("job");
cachedJob =
(com.netflix.spinnaker.clouddriver.titus.client.model.Job)
serverGroupCache.get(entry.getKey()).getAttributes().get("job");
} catch (Exception e) {
log.error(
"Error retrieving duplicate server group {} from server group cache.",
Expand Down

0 comments on commit f314b8e

Please sign in to comment.