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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: master, replicated log
    • Labels:

      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

            • Assignee:
              kaysoky Joseph Wu
              Reporter:
              kaysoky Joseph Wu
              Shepherd:
              Benjamin Hindman

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment