hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lei (Eddy) Xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10638) Modifications to remove the assumption that StorageLocation is associated with java.io.File.
Date Sat, 17 Sep 2016 05:04:21 GMT

    [ 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message