Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1452

Improve Master::removeOffer to avoid further resource accounting bugs.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • master
    • Resource Mgmt: RI-18 54
    • 3

    Description

      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:

      useOffer(offerId);
      rescindOffer(offerId);
      discardOffer(offerId);
      

      2. Add an enum to removeOffer to differentiate removal semantics:

      removeOffer(offerId, USE);
      removeOffer(offerId, RESCIND);
      removeOffer(offerId, DISCARD);
      

      Attachments

        Issue Links

          Activity

            People

              asekretenko Andrei Sekretenko
              bmahler Benjamin Mahler
              Meng Zhu Meng Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: