You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Greg Mann (JIRA)" <ji...@apache.org> on 2016/06/20 21:31:58 UTC

[jira] [Created] (MESOS-5664) Invalid resources sent to '/reserve' are silently dropped

Greg Mann created MESOS-5664:
--------------------------------

             Summary: Invalid resources sent to '/reserve' are silently dropped
                 Key: MESOS-5664
                 URL: https://issues.apache.org/jira/browse/MESOS-5664
             Project: Mesos
          Issue Type: Bug
    Affects Versions: 0.28.2
            Reporter: Greg Mann


If an invalid resource is passed to the master's {{/reserve}} endpoint, it will be silently dropped and not cause an error. This can lead, for example, to a {{/reserve}} request containing a single invalid resource receiving a 200 OK response, despite the fact that no resources were reserved as a result of the request.

This is due to the fact that the {{+=}} operator for {{Resources}} silently drops invalid resources, and this operator is used when parsing the resources in the HTTP request. This could be addressed by validating the resource objects one at a time as they are parsed.



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