[ https://issues.apache.org/jira/browse/MESOS-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Meng Zhu reassigned MESOS-1452: ------------------------------- Assignee: Andrei Sekretenko > Improve Master::removeOffer to avoid further resource accounting bugs. > ---------------------------------------------------------------------- > > Key: MESOS-1452 > URL: https://issues.apache.org/jira/browse/MESOS-1452 > Project: Mesos > Issue Type: Improvement > Reporter: Benjamin Mahler > Assignee: Andrei Sekretenko > Priority: Major > > Per comments on this review: https://reviews.apache.org/r/21750/ > We've had numerous bugs around resource accounting in the master due to the > trickiness of removing offers in the Master code. > There are a few ways to improve this: > 1. Add multiple offer methods to differentiate semantics: > {code} > useOffer(offerId); > rescindOffer(offerId); > discardOffer(offerId); > {code} > 2. Add an enum to removeOffer to differentiate removal semantics: > {code} > removeOffer(offerId, USE); > removeOffer(offerId, RESCIND); > removeOffer(offerId, DISCARD); > {code} -- This message was sent by Atlassian Jira (v8.3.2#803003)