Szilard Nemeth created YARN-8524:

             Summary: Single parameter Resource / LightWeightResource 
constructor looks confusing
                 Key: YARN-8524
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: api
            Reporter: Szilard Nemeth
            Assignee: Szilard Nemeth

The single parameter (long) constructor in Resource / LightWeightResource sets 
all resource components to the same value.
Since there are other constructors in these classes with (long, int) parameters 
where the semantics are different, it could be confusing for the users.
The perfect place to create such a resource would be in the Resources class, 
with a method named like "createResourceWithSameValue".

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to