[ 
https://issues.apache.org/jira/browse/MESOS-7319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15946309#comment-15946309
 ] 

Joseph Wu commented on MESOS-7319:
----------------------------------

I presume we can add an alias to the enumeration, so as to maintain backwards 
compatibility:
 {code}
 message MachineInfo {
   enum Mode {
+    option allow_alias = true;
     UP = 1;
 
+    // Deprecated because of <insert reasons>...
     DRAINING = 2;  
+    SCHEDULED = 2;
 
     DOWN = 3;
   }
   ...
 }
 {code}

> Rename the DRAIN maintenance mode to SCHEDULED to avoid confusion.
> ------------------------------------------------------------------
>
>                 Key: MESOS-7319
>                 URL: https://issues.apache.org/jira/browse/MESOS-7319
>             Project: Mesos
>          Issue Type: Improvement
>          Components: documentation, HTTP API, master
>            Reporter: Benjamin Mahler
>
> The current naming of the DRAIN mode in maintenance has been confusing to 
> users as there tends to be an expectation of mesos doing something (e.g. not 
> sending offers, or killing tasks) to achieve the drain, whereas in reality 
> mesos does nothing and expects the schedulers to act (this only applies for 
> maintenance aware schedulers).
> Rather, what's actually happening at in the DRAIN mode is that the 
> maintenance is scheduled, that's it. So a name like SCHEDULED would be less 
> confusing for users: http://mesos.apache.org/documentation/latest/maintenance/



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to