Pravin Sinha created HADOOP-17921:
-------------------------------------

             Summary: DistCp derives if XAttr is supported wrongly
                 Key: HADOOP-17921
                 URL: https://issues.apache.org/jira/browse/HADOOP-17921
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Pravin Sinha


{color:#0033b3}public static void 
{color}{color:#00627a}checkFileSystemXAttrSupport{color}({color:#000000}FileSystem
 {color}fs)
 {color:#0033b3}throws {color}{color:#000000}XAttrsNotSupportedException 
{color}{
 {color:#0033b3}try {color}{
 fs.getXAttrs({color:#0033b3}new 
{color}Path({color:#000000}Path{color}.{color:#871094}SEPARATOR{color}));
 } {color:#0033b3}catch {color}({color:#000000}Exception {color}e) {
 {color:#0033b3}throw new 
{color}XAttrsNotSupportedException({color:#067d17}"XAttrs not supported for 
file system: "
{color} + fs.getUri());
 }
}

IOExecption will also be treated as if Xattr is not supported, which would be 
wrong.

 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to