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

Vinod Kone commented on MESOS-5566:
-----------------------------------

I think `SchedulerDriver::reconcile()` using TaskStatus was a bad idea in 
retrospect, rather than `TaskStatus` having a required `state` field. The v1 
scheduler API fixes this by not using TaskStatus for RECONCILE call.

> Make "state" field of TaskStatus optional
> -----------------------------------------
>
>                 Key: MESOS-5566
>                 URL: https://issues.apache.org/jira/browse/MESOS-5566
>             Project: Mesos
>          Issue Type: Improvement
>          Components: general
>            Reporter: Neil Conway
>            Priority: Minor
>              Labels: mesosphere, newbie
>
> The {{SchedulerDriver}} interface uses a vector of {{TaskStatus}} for task 
> reconciliation: the framework sends a list of taskIDs (with optional agent 
> IDs), and the master replies with their current task statuses. Right now, 
> frameworks also need to specify the {{state}} field of the input 
> {{TaskStatus}}, because {{state}} is a {{required}} field. It would be 
> cleaner to make {{state}} optional, because otherwise this makes the 
> interface confusing.
> After doing this, we should remove the places where we set the {{state}} 
> field when making reconciliation requests, e.g., in various test cases.
> See discussion in https://reviews.apache.org/r/48250/



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

Reply via email to