Jeff Kubina created MESOS-7824:
----------------------------------

             Summary: Value of Mesos attributes are supposed to be optional but 
are not
                 Key: MESOS-7824
                 URL: https://issues.apache.org/jira/browse/MESOS-7824
             Project: Mesos
          Issue Type: Bug
          Components: agent
    Affects Versions: 1.3.0
            Reporter: Jeff Kubina
            Priority: Minor


The Mesos documentation states that "Attributes are key-value pairs (where 
value is optional 
[optional|http://mesos.apache.org/documentation/latest/attributes-resources/])" 
but if you try to provide an agent with an attribute without a value it errors 
out 
([output|https://lists.apache.org/thread.html/7e5aea0ac238e7982a04e8b2576b2e8ebb6a7ee869dc54dba0e6a047@%3Cuser.mesos.apache.org%3E]
 below provided by James Peach):

$ sudo /opt/mesos/agent "--attributes=key1:value1;key2:;key3:value3"
...
F0714 06:16:49.332021 16167 attributes.cpp:145] Invalid attribute key:value 
pair 'key2:'

$ sudo /opt/mesos/agent "--attributes=key1:value1;key2;key3:value3"
...
F0714 06:17:58.916723 16297 attributes.cpp:145] Invalid attribute key:value 
pair 'key2'

Either the documentation should be fix or an agent should accept attributes 
without a value.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to