You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Renukaprasad C (Jira)" <ji...@apache.org> on 2021/10/06 11:29:00 UTC

[jira] [Resolved] (HDFS-16239) XAttr#toString doesnt print the attribute value in readable format

     [ https://issues.apache.org/jira/browse/HDFS-16239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Renukaprasad C resolved HDFS-16239.
-----------------------------------
    Resolution: Invalid

To print, have we considered using XattrCodec APIs. 

Its not neccessary to print the XAttr.

> XAttr#toString doesnt print the attribute value in readable format
> ------------------------------------------------------------------
>
>                 Key: HDFS-16239
>                 URL: https://issues.apache.org/jira/browse/HDFS-16239
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Renukaprasad C
>            Assignee: Renukaprasad C
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> org.apache.hadoop.fs.XAttr#toString prints the value of attribute in bytes. 
> return "XAttr [ns=" + ns + ", name=" + name + ", value="
>  + Arrays.toString(value) + "]";
> XAttr [ns=SYSTEM, name=az.expression, value=[82, 69, 80, 91, 50, 93......]
> This should be converted to String rather than printing to Array of bytes.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org