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

kanaka kumar avvaru updated HDFS-8686:
--------------------------------------
    Status: Patch Available  (was: Open)

The reason for the issue is {{WebHdfsFileSystem#getXAttr(Path p, final String 
name)}} is doing a second lookup via {{JsonUtilClient}} with the user passed 
string "USER.attr1" which is un-neccessary as the NN has already given filtered 
Xattribute.

Attached patch to correct the code with different method to pickup value 
directly from response json map.

> WebHdfsFileSystem#getXAttr(Path p, final String name) doesn't work if domain 
> name is in bigcase
> -----------------------------------------------------------------------------------------------
>
>                 Key: HDFS-8686
>                 URL: https://issues.apache.org/jira/browse/HDFS-8686
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>            Reporter: Jagadesh Kiran N
>            Assignee: kanaka kumar avvaru
>         Attachments: HDFS-8686-00.patch
>
>
> {code}  hadoop fs -getfattr -n USER.attr1 /dir1 {code} 
> ==> returns value
> {code} webhdfs.getXAttr(new Path("/dir1"),"USER.attr1")) {code} 
> ==> returns null



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

Reply via email to