Joseph Wu created MESOS-3069:
--------------------------------

             Summary: Registry operations do not exist for manipulating 
maintanence schedules
                 Key: MESOS-3069
                 URL: https://issues.apache.org/jira/browse/MESOS-3069
             Project: Mesos
          Issue Type: Task
          Components: master, replicated log
            Reporter: Joseph Wu


In order to modify the maintenance schedule in the replicated registry, we will 
need Operations (src/master/registrar.hpp).

The operations will likely correspond to the HTTP API:
* UpdateMaintenance: Given a blob representing a maintenance schedule, write 
the blob to the registry.  Possibly perform some verification on the blob.
* UpdateSlaveMaintenanceStatus:  Given a single slave/hostname and a status, 
change the slave's status in the maintenance schedule.

Possible test(s):
* UpdateMaintenance:
** Add a schedule with 1 slave, 2+ slaves, and 0 slaves.
** Add multiple schedules (different intervals).
** Delete schedules (empty schedule).
* UpdateSlaveMaintenanceStatus:
** Add schedule.
** Change a slave's status.
** Change a slave's status, given a slave that is not in the schedule (slave 
should be added to the schedule).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to