mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Schlicht (JIRA)" <>
Subject [jira] [Created] (MESOS-6253) Make sure the 'Result' errors are checked correctly.
Date Mon, 26 Sep 2016 13:08:20 GMT
Jan Schlicht created MESOS-6253:

             Summary: Make sure the 'Result' errors are checked correctly.
                 Key: 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
if (!realpath.isSome()) {
  return Error(realpath.error());
and probably others that are wrong. These need to be fixed.

This message was sent by Atlassian JIRA

View raw message