hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13581) Expand FileSystem specification to describe differences between FileSystem and FileContext.
Date Tue, 06 Sep 2016 19:04:20 GMT

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

Chris Nauroth commented on HADOOP-13581:
----------------------------------------

A specific example came up in discussion of rename during HADOOP-9819.  The specification
includes this statement:

{code}
##### Renaming a file to self

Renaming a file to itself is a no-op; the result is `True`.

     if isFile(FS, src) and src == dest :
         FS' = FS
         result = True
{code}

I confused myself by reading this statement and failing to realize that HADOOP-9819 is really
focused on {{FileContext}}.  In that case, {{FileContext#rename}} returns nothing and reports
all errors as exceptions.

> Expand FileSystem specification to describe differences between FileSystem and FileContext.
> -------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-13581
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13581
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>            Reporter: Chris Nauroth
>            Priority: Minor
>
> Sometimes there are behavioral differences between using the {{FileSystem}} API and using
the {{FileContext}} API.  This issue proposes to enhance the specification to describe these
differences in more detail.



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

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


Mime
View raw message