You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Raghu Angadi (JIRA)" <ji...@apache.org> on 2008/10/10 00:58:44 UTC

[jira] Created: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

TestHDFSFileSystemContract fails on windows
-------------------------------------------

                 Key: HADOOP-4387
                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
             Project: Hadoop Core
          Issue Type: Bug
          Components: test
            Reporter: Raghu Angadi
            Priority: Blocker
             Fix For: 0.19.0


'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 

Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :

{noformat}
    Path workDir = path(getDefaultWorkingDirectory());
    assertEquals(workDir, fs.getWorkingDirectory());
{noformat}

This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638425#action_12638425 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-4387:
------------------------------------------------

Should we make this a part of HADOOP-4171?

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Enis Soztutar commented on HADOOP-4387:
---------------------------------------

Well, TestHDFSFileSystemContract just extends FileSystemContractBase, which actually defines the tests, so it may not be meaningful for hdfs to testWorkingDir(), but for some other fs it may make sense. 

The tests are introduced in HADOOP-930 by Tom White. Tom, could you please check this? 

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Enis Soztutar updated HADOOP-4387:
----------------------------------

    Assignee: Raghu Angadi  (was: Enis Soztutar)

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Raghu Angadi
>            Priority: Blocker
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-4387.patch
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Raghu Angadi commented on HADOOP-4387:
--------------------------------------

> Should we make this a part of HADOOP-4171? 
I don't think it is related.

If anyone knows where JVM gets "user.name" on XP, please let us know.


> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Raghu Angadi updated HADOOP-4387:
---------------------------------

    Status: Patch Available  (was: Open)

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-4387.patch
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Raghu Angadi updated HADOOP-4387:
---------------------------------

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

I just committed this.

test-patch output : {noformat}
     [exec] +1 overall.

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

     [exec]     +1 tests included.  The patch appears to include 3 new or modified tests.

     [exec]     +1 javadoc.  The javadoc tool did not generate any warning messages.

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

     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs warnings.

     [exec]     +1 Eclipse classpath. The patch retains Eclipse classpath integrity.
{noformat}

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-4387.patch
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638428#action_12638428 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-4387:
------------------------------------------------

BTW, I cannot reproduce this in my Windows machine.
{noformat}
[junit] Running org.apache.hadoop.hdfs.TestHDFSFileSystemContract
[junit] Tests run: 25, Failures: 0, Errors: 0, Time elapsed: 195.906 sec
{noformat}

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Raghu Angadi updated HADOOP-4387:
---------------------------------

    Attachment: HADOOP-4387.patch

> TestHDFSFileSystemContract just extends FileSystemContractBase, which actually defines the tests, so it may not be meaningful for hdfs to testWorkingDir(),

Right. Nicholas also had suggested overriding {{getDefaultWorkingDirectory()}} for HDFS. The attached patch does that. The test passes now.

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-4387.patch
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Enis Soztutar commented on HADOOP-4387:
---------------------------------------

Raghu, 
Can you confirm that the bug could be the same one listed here : 
http://www.cvsnt.org/pipermail/cvsnt/2001-December/000057.html

In this case, can you find a workaround? 

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Hudson commented on HADOOP-4387:
--------------------------------

Integrated in Hadoop-trunk #640 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/640/])
    

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Raghu Angadi
>            Priority: Blocker
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-4387.patch
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Raghu Angadi reassigned HADOOP-4387:
------------------------------------

    Assignee: Enis Soztutar

Enis,

Could you check this mismatch between how "user" name is calculated. You added this test quite sometime back.

Same issue existed in Windows before in HADOOP-2523, but there the resolution was simpler : just removing the assert :). Here, it seem like "user.name" is used in other places like S3.


> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-4387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HADOOP-4387:
-------------------------------------------

    Hadoop Flags: [Reviewed]

+1 patch looks good.

> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-4387.patch
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4387) TestHDFSFileSystemContract fails on windows

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

Raghu Angadi commented on HADOOP-4387:
--------------------------------------

Will check. 

But I don't know what the motivation for this test is. All it is testing is 'whoami' and 'user.name' should have the same name.. HDFS does not depend on it.. so HDFS should not be tested for it.  Could you explain what this tests?


> TestHDFSFileSystemContract fails on windows
> -------------------------------------------
>
>                 Key: HADOOP-4387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4387
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Raghu Angadi
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> 'ant -Dtestcase=TestHDFSFileSystemContract test-core' fails on Windows nightly build machine. 
> Not sure if this is Hadoop error or a configuration error particular to this machine. Basically the following assert fails :
> {noformat}
>     Path workDir = path(getDefaultWorkingDirectory());
>     assertEquals(workDir, fs.getWorkingDirectory());
> {noformat}
> This is essentially testing that {{System.getProperty("user.name")}} is same as string returned by Cygwin's 'whoami'. But in this case, these are "SYSTEM" and "hadoopqa" respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.