Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #44 from mesosphere/0_8_2_2
Browse files Browse the repository at this point in the history
Fix persistence IDs for update case
  • Loading branch information
gabrielhartmann committed Feb 16, 2016
2 parents c633e91 + 394ccf6 commit 9eb4784
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ public OfferRequirement getUpdateOfferRequirement(String configName, TaskInfo ta
String brokerName = taskInfo.getName();
Integer brokerId = OfferUtils.nameToId(brokerName);
String taskId = taskInfo.getTaskId().getValue();

String persistenceId = OfferUtils.getPersistenceId(taskInfo);
if (persistenceId == null) {
persistenceId = UUID.randomUUID().toString();
}

TaskInfo newTaskInfo = getTaskInfo(configName, config, persistenceId, brokerId, taskId);

log.info("newTaskInfo: " + newTaskInfo);
Expand Down

0 comments on commit 9eb4784

Please sign in to comment.