You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2016/09/06 19:04:20 UTC

[jira] [Commented] (HADOOP-13581) Expand FileSystem specification to describe differences between FileSystem and FileContext.

    [ 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