Yan Xu created MESOS-7403: ----------------------------- Summary: Resources::apply(const Offer::Operation&) should fail when a shared persistent volume can't be removed Key: MESOS-7403 URL: https://issues.apache.org/jira/browse/MESOS-7403 Project: Mesos Issue Type: Bug Reporter: Yan Xu
The handling of {{Offer::Operation::DESTROY}} in {{Try<Resources> Resources::apply(const Offer::Operation& operation) const;}} simply does a subtraction of the volumes from the resources. For regular persistent volumes this should suffice but for shared persistent volumes if there are multiple copies of the same shared volume in the resources object, the subtraction can't remove the volume, it simply removes a copy. This being a {{DESTROY}} operation means we do want to completely remove it and if we can't, the {{apply}} method should fail. -- This message was sent by Atlassian JIRA (v6.3.15#6346)