mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhitao Li (JIRA)" <>
Subject [jira] [Created] (MESOS-7852) Tighten error handling in slaveRunTaskLabelDecorator hook
Date Wed, 02 Aug 2017 17:15:00 GMT
Zhitao Li created MESOS-7852:

             Summary: Tighten error handling in slaveRunTaskLabelDecorator hook
                 Key: MESOS-7852
             Project: Mesos
          Issue Type: Bug
          Components: modules
            Reporter: Zhitao Li

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

View raw message