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

Registry operations are hardcoded for a single key (Registry object)

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • master, replicated log

    Description

      This is primarily a refactoring.

      The prototype for modifying the registry is currently:

      Try<bool> operator () (
          Registry* registry,
          hashset<SlaveID>* slaveIDs,
          bool strict);
      

      In order to support Maintenance schedules (possibly Quotas as well), there should be an alternate prototype for Maintenance. Something like:

      Try<bool> operation () (
          Maintenance* maintenance,
          bool strict);
      

      The existing RegistrarProcess::update (src/master/registrar.cpp) should be refactored to allow for more than one key. If necessary, refactor existing operations defined in src/master/master.hpp (AdminSlave, ReadminSlave, RemoveSlave).

      Attachments

        Issue Links

          Activity

            People

              kaysoky Joseph Wu
              kaysoky Joseph Wu
              Benjamin Hindman Benjamin Hindman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: