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

Lei (Eddy) Xu commented on HDFS-10638:
--------------------------------------

Hi, [~virajith]

{code}
   try {
   File file = new File(uri.toString());
  String absPath = file.getAbsolutePath();
  uri = new URI("file", uri.getAuthority(), absPath, uri.getQuery(), 
uri.getFragment());
} catch (URISyntaxException e) {
   e.printStackTrace();
}
{code}

It should not swallow the exception. It can throw {{IOE}}.

> Modifications to remove the assumption that StorageLocation is associated 
> with java.io.File.
> --------------------------------------------------------------------------------------------
>
>                 Key: HDFS-10638
>                 URL: https://issues.apache.org/jira/browse/HDFS-10638
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode, fs
>            Reporter: Virajith Jalaparti
>         Attachments: HDFS-10638.001.patch, HDFS-10638.002.patch, 
> HDFS-10638.003.patch
>
>
> Changes to ensure that {{StorageLocation}} need not be associated with a 
> {{java.io.File}}. 



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

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

Reply via email to