You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Neil Conway (JIRA)" <ji...@apache.org> on 2016/06/08 09:03:20 UTC

[jira] [Created] (MESOS-5566) Make "state" field of TaskStatus optional

Neil Conway created MESOS-5566:
----------------------------------

             Summary: 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


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)