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 "Eli Collins (Created) (JIRA)" <ji...@apache.org> on 2012/02/08 06:35:00 UTC

[jira] [Created] (HADOOP-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

TestViewFsTrash assumes the user's home directory is 2 levels deep
------------------------------------------------------------------

                 Key: HADOOP-8036
                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
             Project: Hadoop Common
          Issue Type: Bug
          Components: test
    Affects Versions: 0.23.0
            Reporter: Eli Collins


Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.

{noformat}
org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
{noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #1744 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1744/])
    HADOOP-8036. TestViewFsTrash assumes the user's home directory is 2 levels deep. Contributed by Colin Patrick McCabe (Revision 1245751)

     Result = SUCCESS
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245751
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.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/ViewFileSystemTestSetup.java

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #1756 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1756/])
    HADOOP-8036. TestViewFsTrash assumes the user's home directory is 2 levels deep. Contributed by Colin Patrick McCabe (Revision 1245751)

     Result = ABORTED
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245751
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.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/ViewFileSystemTestSetup.java

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

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

Changes look great to me. Thanks a lot for taking care of that, Colin.
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Eli Collins updated HADOOP-8036:
--------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I've committed this. Thanks Colin, and ATM.
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Hdfs-trunk #959 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/959/])
    HADOOP-8036. TestViewFsTrash assumes the user's home directory is 2 levels deep. Contributed by Colin Patrick McCabe (Revision 1245751)

     Result = SUCCESS
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245751
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.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/ViewFileSystemTestSetup.java

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #1818 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1818/])
    HADOOP-8036. TestViewFsTrash assumes the user's home directory is 2 levels deep. Contributed by Colin Patrick McCabe (Revision 1245751)

     Result = FAILURE
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245751
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.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/ViewFileSystemTestSetup.java

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Colin Patrick McCabe updated HADOOP-8036:
-----------------------------------------

    Attachment: HADOOP-8036-02.txt

* change single-line comment to use '//' not '/* */'

* don't call cleanup functions from startup functions, pending resolution of HDFS-2967
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Colin Patrick McCabe commented on HADOOP-8036:
----------------------------------------------

Filed as https://issues.apache.org/jira/browse/HDFS-2967.  I'll remove the @Before->@After logic from this test until we make a more general decision about 2967.
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Eli Collins commented on HADOOP-8036:
-------------------------------------

+1 looks good
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Mapreduce-0.23-Commit #569 (See [https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Commit/569/])
    HADOOP-8036. svn merge -c 1245751 from trunk (Revision 1245752)

     Result = ABORTED
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245752
Files : 
* /hadoop/common/branches/branch-0.23
* /hadoop/common/branches/branch-0.23/hadoop-common-project
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-auth
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/docs
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/core
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemTestSetup.java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/native
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/datanode
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/secondary
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/bin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/conf
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/resources/mapred-default.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/c++
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/block_forensics
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build-contrib.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/data_join
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/eclipse-plugin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/index
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/vaidya
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/java
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/fs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/ipc
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/webapps/job
* /hadoop/common/branches/branch-0.23/hadoop-project
* /hadoop/common/branches/branch-0.23/hadoop-project/src/site

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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] [Assigned] (HADOOP-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Harsh J reassigned HADOOP-8036:
-------------------------------

    Assignee: Harsh J
    
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Harsh J
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Colin Patrick McCabe updated HADOOP-8036:
-----------------------------------------

    Attachment: HADOOP-8036.txt

* fix bug where we were assuming that the user's home directory had only two path components.  For example, if the home directory was /var/home/foo, the code would fail.

* rename setupForViewFs to setupForViewFilesystem, to avoid any confusion.  There is another class called ViewFsTestSetup which shares no code with ViewFileSystemTestSetup.

* remove commented-out junk
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Colin Patrick McCabe commented on HADOOP-8036:
----------------------------------------------

I've confirmed that aborting the test halfway through (for example, with the stop button in Eclipse) will NOT invoke the tearDown function.

Given this, it seems prudent to do out cleanup work beforehand.  Otherwise people who manually abort the test halfway through will be hosed.  Also, as you pointed out, there is always the possibility of the JVM aborting, which would definitely prevent cleanup.

We definitely want to avoid a situation where the Jenkins machine can't build, but we can, due to some mysterious build artifacts hanging around.  So I figure it makes sense to stay on the safe side.
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hadoop QA commented on HADOOP-8036:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12515008/HADOOP-8036-02.txt
  against trunk revision .

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

    +1 tests included.  The patch appears to include 15 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any 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 does not introduce any new Findbugs (version 1.3.9) warnings.

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

    +1 core tests.  The patch passed unit tests in .

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

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

This message is automatically generated.
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Common-0.23-Commit #566 (See [https://builds.apache.org/job/Hadoop-Common-0.23-Commit/566/])
    HADOOP-8036. svn merge -c 1245751 from trunk (Revision 1245752)

     Result = SUCCESS
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245752
Files : 
* /hadoop/common/branches/branch-0.23
* /hadoop/common/branches/branch-0.23/hadoop-common-project
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-auth
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/docs
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/core
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemTestSetup.java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/native
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/datanode
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/secondary
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/bin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/conf
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/resources/mapred-default.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/c++
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/block_forensics
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build-contrib.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/data_join
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/eclipse-plugin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/index
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/vaidya
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/java
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/fs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/ipc
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/webapps/job
* /hadoop/common/branches/branch-0.23/hadoop-project
* /hadoop/common/branches/branch-0.23/hadoop-project/src/site

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Hdfs-0.23-Commit #553 (See [https://builds.apache.org/job/Hadoop-Hdfs-0.23-Commit/553/])
    HADOOP-8036. svn merge -c 1245751 from trunk (Revision 1245752)

     Result = FAILURE
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245752
Files : 
* /hadoop/common/branches/branch-0.23
* /hadoop/common/branches/branch-0.23/hadoop-common-project
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-auth
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/docs
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/core
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemTestSetup.java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/native
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/datanode
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/secondary
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/bin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/conf
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/resources/mapred-default.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/c++
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/block_forensics
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build-contrib.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/data_join
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/eclipse-plugin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/index
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/vaidya
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/java
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/fs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/ipc
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/webapps/job
* /hadoop/common/branches/branch-0.23/hadoop-project
* /hadoop/common/branches/branch-0.23/hadoop-project/src/site

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk #994 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/994/])
    HADOOP-8036. TestViewFsTrash assumes the user's home directory is 2 levels deep. Contributed by Colin Patrick McCabe (Revision 1245751)

     Result = SUCCESS
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245751
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.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/ViewFileSystemTestSetup.java

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Eli Collins updated HADOOP-8036:
--------------------------------

    Target Version/s:   (was: 0.23.2)
       Fix Version/s: 0.23.2
    
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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] [Assigned] (HADOOP-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Eli Collins reassigned HADOOP-8036:
-----------------------------------

    Assignee: Colin Patrick McCabe  (was: Harsh J)
    
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Hdfs-0.23-Build #172 (See [https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/172/])
    HADOOP-8036. svn merge -c 1245751 from trunk (Revision 1245752)

     Result = SUCCESS
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245752
Files : 
* /hadoop/common/branches/branch-0.23
* /hadoop/common/branches/branch-0.23/hadoop-common-project
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-auth
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/docs
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/core
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemTestSetup.java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/native
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/datanode
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/secondary
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/bin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/conf
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/resources/mapred-default.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/c++
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/block_forensics
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build-contrib.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/data_join
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/eclipse-plugin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/index
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/vaidya
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/java
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/fs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/ipc
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/webapps/job
* /hadoop/common/branches/branch-0.23/hadoop-project
* /hadoop/common/branches/branch-0.23/hadoop-project/src/site

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

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

I'm a little surprised you need to call {{tearDown}} explicitly in {{setUp}}. I believe that any method annotated with {{@After}} is guaranteed to run regardless of the failure of the test which it's being run after (unless the JVM exits, but we've got a heap of trouble if that happens.)
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hadoop QA commented on HADOOP-8036:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12514843/HADOOP-8036.txt
  against trunk revision .

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

    +1 tests included.  The patch appears to include 15 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any 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 does not introduce any new Findbugs (version 1.3.9) warnings.

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

    +1 core tests.  The patch passed unit tests in .

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

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

This message is automatically generated.
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Eli Collins updated HADOOP-8036:
--------------------------------

    Component/s: fs
    
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Hudson commented on HADOOP-8036:
--------------------------------

Integrated in Hadoop-Mapreduce-0.23-Build #200 (See [https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/200/])
    HADOOP-8036. svn merge -c 1245751 from trunk (Revision 1245752)

     Result = FAILURE
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1245752
Files : 
* /hadoop/common/branches/branch-0.23
* /hadoop/common/branches/branch-0.23/hadoop-common-project
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-auth
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/docs
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/core
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemDelegation.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemTestSetup.java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/native
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/datanode
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/secondary
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/bin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/conf
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/resources/mapred-default.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/c++
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/block_forensics
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build-contrib.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/build.xml
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/data_join
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/eclipse-plugin
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/index
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/contrib/vaidya
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/examples
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/java
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/fs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/hdfs
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/ipc
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/webapps/job
* /hadoop/common/branches/branch-0.23/hadoop-project
* /hadoop/common/branches/branch-0.23/hadoop-project/src/site

                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>             Fix For: 0.23.2
>
>         Attachments: HADOOP-8036-02.txt, HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

Eli Collins updated HADOOP-8036:
--------------------------------

    Hadoop Flags: Reviewed
          Status: Patch Available  (was: Open)

Looks great Colin. +1 pending jenkins

Nit, the style for 1-line comments is C++ style "//"
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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-8036) TestViewFsTrash assumes the user's home directory is 2 levels deep

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

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

{quote}
I've confirmed that aborting the test halfway through (for example, with the stop button in Eclipse) will NOT invoke the tearDown function.

Given this, it seems prudent to do out cleanup work beforehand. Otherwise people who manually abort the test halfway through will be hosed. Also, as you pointed out, there is always the possibility of the JVM aborting, which would definitely prevent cleanup.

We definitely want to avoid a situation where the Jenkins machine can't build, but we can, due to some mysterious build artifacts hanging around. So I figure it makes sense to stay on the safe side.
{quote}

Yea, I buy this, but given that we don't do this anywhere else, I'd rather be consistent with the rest of the test suite.

In general, I'd be in favor of having any test which mucks with persistent file system state both a) clean up after itself using an @After (the normal case) and b) call that same cleanup code in an @Before so that aborted test runs don't cause subsequent test runs to spuriously fail. Perhaps you could file a separate JIRA to do that across all the tests?
                
> TestViewFsTrash assumes the user's home directory is 2 levels deep
> ------------------------------------------------------------------
>
>                 Key: HADOOP-8036
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8036
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Assignee: Colin Patrick McCabe
>         Attachments: HADOOP-8036.txt
>
>
> Looks like HADOOP-7974 didn't fix the issue. Still get "Path /var already exists as dir; cannot create link here Stacktrace" when running on jenkins with home dir /var/lib/jenkins.
> {noformat}
> org.apache.hadoop.fs.FileAlreadyExistsException: Path /var already exists as dir; cannot create link here
> 	at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:244)
> 	at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:334)
> 	at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:165)
> {noformat}

--
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