Hello everyone,
Gastón and I are working on enabling offer operation feedback for
frameworks [1]. The 'id' field in an offer operation is used by the
framework to enable status updates for that operation. This field is new in
1.5.0, and currently the master simply drops all operations which have this
field set.

I'm updating the validation code to drop offer operations from
SchedulerDriver-based frameworks when the 'id' field is set, since we are
only adding this feature to the v1 scheduler API [2]. I have a patch up for
this [3], and in addition to dropping the operation, the master sends a
'FrameworkErrorMessage', which will abort the SchedulerDriver. I wanted to
check with people to see if they think that this is a reasonable use of the
'FrameworkErrorMessage', which we currently use mostly for failed
subscription, in addition to a couple other cases.

Another option would be to just silently drop operations from
SchedulerDriver frameworks which have the 'id' field set. Currently, I'm
opting for the more severe approach, which would inform the SchedulerDriver
that it is using the API incorrectly by aborting it, with an informative
error message.

Let me know what you think,
Greg

[1] https://issues.apache.org/jira/browse/MESOS-8054
[2]
https://docs.google.com/document/d/1GGh14SbPTItjiweSZfann4GZ6PCteNrn-1y4pxOjgcI/edit#
[3] https://reviews.apache.org/r/63992/

Reply via email to