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 "Aaron T. Myers (JIRA)" <ji...@apache.org> on 2012/05/03 05:41:56 UTC

[jira] [Created] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Aaron T. Myers created HADOOP-8349:
--------------------------------------

             Summary: ViewFS doesn't work when the root of a file system is mounted
                 Key: HADOOP-8349
                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
             Project: Hadoop Common
          Issue Type: Bug
          Components: fs
    Affects Versions: 2.0.0
            Reporter: Aaron T. Myers
            Assignee: Aaron T. Myers


Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HADOOP-8349:
-----------------------------------

    Attachment: HADOOP-8349.patch

Thanks a lot for the review, Todd. Here's an updated patch which adds some comments to the new test.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Daryn Sharp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267652#comment-13267652 ] 

Daryn Sharp commented on HADOOP-8349:
-------------------------------------

Just trying to understand the patch overall.  I'm a bit confused by this code that's not in your patch, but related to it:
{code}
chRootPathPart = new Path(uri.getPath());
chRootPathPartString = chRootPathPart.toUri().getPath();
{code}

Why is it running a uri path through {{Path}} just to get the path again?
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HADOOP-8349:
-----------------------------------

    Attachment: HADOOP-8349.patch

Here's an updated patch which makes all the same changes to the FileContext side of the house. Indeed, the same two off-by-one errors were present in ChRootedFs as well.

bq. Why is it running a uri path through Path just to get the path again?

Because {{URI#getPath()}} returns a {{String}}, not a {{Path}} object. We probably could just assign {{chRootPathPartString}} to {{uir.getPath()}}, but that might drop any mangling that the {{Path}} constructor is doing.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267174#comment-13267174 ] 

Todd Lipcon commented on HADOOP-8349:
-------------------------------------

Mind uploading a HADOOP-only patch so test-patch can run? I'll review the combined patch.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267538#comment-13267538 ] 

Aaron T. Myers commented on HADOOP-8349:
----------------------------------------

Thanks a lot for the review, John. I'm not actually sure that ChRootedFs has the same issue, but I'm happy to look into that possibility later today. At a minimum, it would be good to add a test similar to the one added here for ChRootedFs/ViewFs.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Daryn Sharp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268334#comment-13268334 ] 

Daryn Sharp commented on HADOOP-8349:
-------------------------------------

+1 The handling still feels a bit cluttered, but at least it works!
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267148#comment-13267148 ] 

Aaron T. Myers edited comment on HADOOP-8349 at 5/3/12 3:43 PM:
----------------------------------------------------------------

My NameNode is running at simon:8020. I have the following in my core-site.xml:

{code}
<property>
  <name>fs.default.name</name>
  <value>viewfs://vfs-cluster</value>
</property>
  
<property>
  <name>fs.viewfs.mounttable.vfs-cluster.link./nn-root</name>
  <value>hdfs://simon:8020/</value>
</property>
{code}

Looking at the contents of the HDFS FS directly yields the following output:
{noformat}
$ hadoop fs -ls hdfs://simon:8020/
Found 4 items
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 20:40 hdfs://simon:8020/fizz-buzz
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 17:46 hdfs://simon:8020/foo-bar
drwxrwxrwt   - hdfs supergroup          0 2012-04-13 16:53 hdfs://simon:8020/tmp
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 18:05 hdfs://simon:8020/user
{noformat}
Looking at the contents via ViewFS yields the following output:
{noformat}
$ hadoop fs -ls /nn-root
Found 4 items
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 20:40 /nn-root/izz-buzz
drwxrwxrwt   - hdfs supergroup          0 2012-04-13 16:53 /nn-root/mp
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 17:46 /nn-root/oo-bar
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 18:05 /nn-root/ser
{noformat}
Trying to make a directory via ViewFS yields the following output:
{noformat}
$ hadoop fs -mkdir /nn-root/fezz-bezz
-mkdir: Pathname  from //fezz-bezz is not a valid DFS filename.
Usage: hadoop fs [generic options] -mkdir [-p] <path> ...
{noformat}
Whereas trying to make a directory directly via HDFS works as expected.
                
      was (Author: atm):
    My NameNode is running at simon:8020. I have the following in my core-site.xml:

{code}
<property>
  <name>fs.default.name</name>
  <value>viewfs://vfs-cluster</value>
</property>
  
<property>
  <name>fs.viewfs.mounttable.vfs-cluster.link./nn-root</name>
  <value>hdfs://simon:8020/</value>
</property>
{code}

Looking at the contents of the HDFS FS directly yields the following output:
{noformat}
$ hadoop fs -ls /nn-root
Found 4 items
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 20:40 /nn-root/fizz-buzz
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 17:46 /nn-root/foo-bar
drwxrwxrwt   - hdfs supergroup          0 2012-04-13 16:53 /nn-root/tmp
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 18:05 /nn-root/user
{noformat}
Looking at the contents via ViewFS yields the following output:
{noformat}
$ hadoop fs -ls /nn-root
Found 4 items
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 20:40 /nn-root/izz-buzz
drwxrwxrwt   - hdfs supergroup          0 2012-04-13 16:53 /nn-root/mp
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 17:46 /nn-root/oo-bar
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 18:05 /nn-root/ser
{noformat}
Trying to make a directory via ViewFS yields the following output:
{noformat}
$ hadoop fs -mkdir /nn-root/fezz-bezz
-mkdir: Pathname  from //fezz-bezz is not a valid DFS filename.
Usage: hadoop fs [generic options] -mkdir [-p] <path> ...
{noformat}
Whereas trying to make a directory directly via HDFS works as expected.
                  
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HADOOP-8349:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Thanks a lot for the reviews, John, Daryn, and Todd. I've just committed this to trunk and branch-2.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>             Fix For: 2.0.0
>
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Eli Collins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eli Collins updated HADOOP-8349:
--------------------------------

    Component/s:     (was: fs)
                 viewfs
    
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 2.0.0-alpha
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>             Fix For: 2.0.0-alpha
>
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268965#comment-13268965 ] 

Hudson commented on HADOOP-8349:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk #1070 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1070/])
    HADOOP-8349. ViewFS doesn't work when the root of a file system is mounted. Contributed by Aaron T. Myers. (Revision 1334231)

     Result = SUCCESS
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1334231
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Path.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemHdfs.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsHdfs.java

                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>             Fix For: 2.0.0
>
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268020#comment-13268020 ] 

Aaron T. Myers commented on HADOOP-8349:
----------------------------------------

Despite being in a related part of the code, I'm fairly confident that the test failure is unrelated. The two Javadoc warnings are known issues, and I believe the findbugs warning is spurious: HADOOP-8354
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "John George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267457#comment-13267457 ] 

John George commented on HADOOP-8349:
-------------------------------------

Aaron - Do you mind either filing a JIRA to fix the corresponding AbstractFileSystem based filesystems (ChRootedFs, ViewFs etc) for the same issue, or if its easy, fixing it in this patch? 
I will review this patch and post my comments shortly.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268761#comment-13268761 ] 

Hudson commented on HADOOP-8349:
--------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #2267 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2267/])
    HADOOP-8349. ViewFS doesn't work when the root of a file system is mounted. Contributed by Aaron T. Myers. (Revision 1334231)

     Result = SUCCESS
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1334231
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Path.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemHdfs.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsHdfs.java

                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>             Fix For: 2.0.0
>
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268953#comment-13268953 ] 

Hudson commented on HADOOP-8349:
--------------------------------

Integrated in Hadoop-Hdfs-trunk #1035 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1035/])
    HADOOP-8349. ViewFS doesn't work when the root of a file system is mounted. Contributed by Aaron T. Myers. (Revision 1334231)

     Result = FAILURE
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1334231
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Path.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemHdfs.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsHdfs.java

                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>             Fix For: 2.0.0
>
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HADOOP-8349:
-----------------------------------

    Status: Patch Available  (was: Open)
    
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268745#comment-13268745 ] 

Todd Lipcon commented on HADOOP-8349:
-------------------------------------

+1
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267250#comment-13267250 ] 

Hadoop QA commented on HADOOP-8349:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12525404/HADOOP-8349.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified test files.

    -1 javadoc.  The javadoc tool appears to have generated 2 warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    -1 findbugs.  The patch appears to cause Findbugs (version 1.3.9) to fail.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed these unit tests in hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs:

                  org.apache.hadoop.fs.viewfs.TestViewFsTrash

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/925//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/925//console

This message is automatically generated.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267148#comment-13267148 ] 

Aaron T. Myers commented on HADOOP-8349:
----------------------------------------

My NameNode is running at simon:8020. I have the following in my core-site.xml:

{code}
<property>
  <name>fs.default.name</name>
  <value>viewfs://vfs-cluster</value>
</property>
  
<property>
  <name>fs.viewfs.mounttable.vfs-cluster.link./nn-root</name>
  <value>hdfs://simon:8020/</value>
</property>
{code}

Looking at the contents of the HDFS FS directly yields the following output:
{noformat}
$ hadoop fs -ls /nn-root
Found 4 items
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 20:40 /nn-root/fizz-buzz
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 17:46 /nn-root/foo-bar
drwxrwxrwt   - hdfs supergroup          0 2012-04-13 16:53 /nn-root/tmp
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 18:05 /nn-root/user
{noformat}
Looking at the contents via ViewFS yields the following output:
{noformat}
$ hadoop fs -ls /nn-root
Found 4 items
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 20:40 /nn-root/izz-buzz
drwxrwxrwt   - hdfs supergroup          0 2012-04-13 16:53 /nn-root/mp
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 17:46 /nn-root/oo-bar
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 18:05 /nn-root/ser
{noformat}
Trying to make a directory via ViewFS yields the following output:
{noformat}
$ hadoop fs -mkdir /nn-root/fezz-bezz
-mkdir: Pathname  from //fezz-bezz is not a valid DFS filename.
Usage: hadoop fs [generic options] -mkdir [-p] <path> ...
{noformat}
Whereas trying to make a directory directly via HDFS works as expected.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267184#comment-13267184 ] 

Todd Lipcon commented on HADOOP-8349:
-------------------------------------

Patch looks reasonable. Can you add some comments to the new test that explain what exactly it's doing? It's really hard to follow, what with the test inheritance going on.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "John George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268021#comment-13268021 ] 

John George commented on HADOOP-8349:
-------------------------------------

Appreciate you fixing this in the same JIRA Aaron. +1
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "John George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267529#comment-13267529 ] 

John George commented on HADOOP-8349:
-------------------------------------

The current patch looks reasonable to me. +1 as long as the ChRootedFs concern is addressed. Thanks for fixing this Aaron.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268018#comment-13268018 ] 

Hadoop QA commented on HADOOP-8349:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12525537/HADOOP-8349.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 6 new or modified test files.

    -1 javadoc.  The javadoc tool appears to have generated 2 warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    -1 findbugs.  The patch appears to cause Findbugs (version 1.3.9) to fail.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed these unit tests in hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs:

                  org.apache.hadoop.fs.viewfs.TestViewFsTrash

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/935//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/935//console

This message is automatically generated.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268798#comment-13268798 ] 

Hudson commented on HADOOP-8349:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #2210 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2210/])
    HADOOP-8349. ViewFS doesn't work when the root of a file system is mounted. Contributed by Aaron T. Myers. (Revision 1334231)

     Result = ABORTED
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1334231
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Path.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemHdfs.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsHdfs.java

                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>             Fix For: 2.0.0
>
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268754#comment-13268754 ] 

Hudson commented on HADOOP-8349:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #2192 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2192/])
    HADOOP-8349. ViewFS doesn't work when the root of a file system is mounted. Contributed by Aaron T. Myers. (Revision 1334231)

     Result = SUCCESS
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1334231
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Path.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemHdfs.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsAtHdfsRoot.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsHdfs.java

                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>             Fix For: 2.0.0
>
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch, HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HADOOP-8349:
-----------------------------------

    Attachment: HADOOP-8349.patch

Here's a patch which addresses the issue. The crux of the problem was two separate off-by-one errors in ChRootedFileSystem. Since to test this requires that we be able to mount and futz with files/directories at the root of the target file system, I put the test to exercise this in HDFS.
                
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
>                 Key: HADOOP-8349
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8349
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8349.patch
>
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira