[
https://issues.apache.org/jira/browse/MESOS-7852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gavin updated MESOS-7852:
-------------------------
Comment: was deleted
(was: www.rtat.net)
> Tighten error handling in slaveRunTaskLabelDecorator hook
> ---------------------------------------------------------
>
> Key: MESOS-7852
> URL: https://issues.apache.org/jira/browse/MESOS-7852
> Project: Mesos
> Issue Type: Bug
> Components: modules
> Reporter: Zhitao Li
> Priority: Major
>
> For whatever reason, the {{slaveRunTaskLabelDecorator}} allows the module
> author to return an error, but the hook manager "silently" suppresses the
> error in {{HookManager::slaveRunTaskLabelDecorator}} and proceed.
> This creates some problems:
> 1) module author could incorrectly assume that an returned error could cause
> the task run to fail, but it's actually not the case;
> 2) module author has not way to instruct Mesos agent to stop the task launch
> if unrecoverable error happens.
> I suggest we tighten the handling here to fail the task run if module reports
> an error. A module can still work around soft errors by just returning input
> labels as-is.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)