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

[jira] [Created] (MESOS-6253) Make sure the 'Result' errors are checked correctly.

Jan Schlicht created MESOS-6253:
-----------------------------------

             Summary: Make sure the 'Result' errors are checked correctly.
                 Key: MESOS-6253
                 URL: https://issues.apache.org/jira/browse/MESOS-6253
             Project: Mesos
          Issue Type: Bug
            Reporter: Jan Schlicht


A {{Result}} behaves like a {{Try<Option>}}, which means it can be {{Some}}, {{None}} or an error. Only in case of an error can {{Result::error}} get called, otherwise an assertion will fail, see e.g. MESOS-6226. We need to make sure that this is followed throughout the code. There are occurrences like
{{noformat}}
if (!realpath.isSome()) {
  return Error(realpath.error());
}
{{noformat}}
and probably others that are wrong. These need to be fixed.



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