[ 
https://issues.apache.org/jira/browse/YARN-7840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16344875#comment-16344875
 ] 

Bibin A Chundatt commented on YARN-7840:
----------------------------------------

Thank you [~Naganarasimha] for patch

  Minor comment
{code:java}
159       @Override
160       public void setAttributePrefix(String attributePrefix) {
161         maybeInitBuilder();
162         builder.setAttributeName(attributePrefix);
163       }
{code}
{code:java}
    if (attributePrefix == null) {
      builder.clearAttribute();
      return;
    }
{code}
 # IIUC we should be clearing attribute if its null as above
 # Since the default value for attribute prefix is EMPTY any thoughts on 
setting the default value as EMPTY in proto too?? Else we might need to check 
in multiple places for EMPTY/NULL in future to identify default value

> Update PB for prefix support of node attributes
> -----------------------------------------------
>
>                 Key: YARN-7840
>                 URL: https://issues.apache.org/jira/browse/YARN-7840
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Weiwei Yang
>            Assignee: Naganarasimha G R
>            Priority: Blocker
>         Attachments: YARN-7840-YARN-3409.001.patch, 
> YARN-7840-YARN-3409.002.patch
>
>
> We need to support prefix (namespace) for node attributes, this will add the 
> flexibility to provide ability to do proper ACL, avoid naming conflicts etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to