----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/71436/ -----------------------------------------------------------
(Updated Sept. 6, 2019, 4:56 p.m.) Review request for mesos, Benjamin Mahler and Meng Zhu. Bugs: MESOS-1452 and MESOS-9949 https://issues.apache.org/jira/browse/MESOS-1452 https://issues.apache.org/jira/browse/MESOS-9949 Repository: mesos Description ------- This patch adds helper methods `Master::rescindOffer()` / `Master::discardOffer()` that recover offer's resources in the allocator and remove the offer, and replaces paired calls of `removeOffer()` + `allocator->recoverResources()` with these helpers. Diffs (updated) ----- src/master/http.cpp 0987d933c03b059c70f0b7c6231df73b8b4d228f src/master/master.hpp 19c17821d2b8111ebe8e1429a5b4a8423357fdd6 src/master/master.cpp f00906ef2d33920f23127a74ed141fff9d32865b src/master/quota_handler.cpp f28eb27964afd2c8bfa0bf7a3ab8246442812f2a src/master/weights_handler.cpp dfb6f06449f85e7acb156cac0ff79cadcc712255 Diff: https://reviews.apache.org/r/71436/diff/2/ Changes: https://reviews.apache.org/r/71436/diff/1-2/ Testing ------- make check, 10 times Thanks, Andrei Sekretenko