[ 
https://issues.apache.org/jira/browse/HADOOP-5050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jakob Homan updated HADOOP-5050:
--------------------------------

    Attachment: HADOOP-5050.patch

I've tried quite a bit and have been unable to get the test to fail on my 
machines.  It appears from your log that the local directory that's created 
during the test has an expected write permission enabled.  Out of curiosity, 
what's the default umask on your machine?  

The assumption currently used by the test, that the newly created directory 
will have a specific set of permissions on the local filesystem, is probably 
not a good one to make.  I've changed the test test to explicitly set the 
permissions before the test, this should remove the problem.  I've also added 
logging info to the test to help if further debugging is required.

Patch passes all local unit tests except known-bad HADOOP-4907.
test-patch output:
{noformat}
     [exec] +1 overall.  
     [exec] 
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec] 
     [exec]     +1 tests included.  The patch appears to include 3 new or 
modified tests.
     [exec] 
     [exec]     +1 javadoc.  The javadoc tool did not generate any warning 
messages.
     [exec] 
     [exec]     +1 javac.  The applied patch does not increase the total number 
of javac compiler warnings.
     [exec] 
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs 
warnings.
     [exec] 
     [exec]     +1 Eclipse classpath. The patch retains Eclipse classpath 
integrity.
{noformat}

> TestDFSShell fails intermittently
> ---------------------------------
>
>                 Key: HADOOP-5050
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5050
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.21.0
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Jakob Homan
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-5050.patch, TestDFSShell.log
>
>
> TestDFSShell.testFilePermissions fails intermittently with following 
> assertion failure :
> Testcase: testFilePermissions took 0.299 sec
>       FAILED
> expected:<...-...> but was:<...w...>
> junit.framework.ComparisonFailure: expected:<...-...> but was:<...w...>
>       at org.apache.hadoop.hdfs.TestDFSShell.testChmod(TestDFSShell.java:781)
>       at 
> org.apache.hadoop.hdfs.TestDFSShell.testFilePermissions(TestDFSShell.java:832)

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

Reply via email to