hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2640) TestDirectoryCollection.testCreateDirectories failed
Date Thu, 02 Oct 2014 10:53:33 GMT

    [ https://issues.apache.org/jira/browse/YARN-2640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14156364#comment-14156364

Hadoop QA commented on YARN-2640:

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  against trunk revision 9e40de6.

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new or modified
test files.

    {color:red}-1 javac{color:red}.  The patch appears to cause the build to fail.

Console output: https://builds.apache.org/job/PreCommit-YARN-Build/5235//console

This message is automatically generated.

> TestDirectoryCollection.testCreateDirectories failed
> ----------------------------------------------------
>                 Key: YARN-2640
>                 URL: https://issues.apache.org/jira/browse/YARN-2640
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>            Reporter: Jun Gong
>            Assignee: Jun Gong
>         Attachments: YARN-2640.2.patch, YARN-2640.patch
> When running test "mvn test -Dtest=TestDirectoryCollection", it failed:
> {code}
> Running org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection
> Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.538 sec <<<
FAILURE! - in org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection
> testCreateDirectories(org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection)
 Time elapsed: 0.969 sec  <<< FAILURE!
> java.lang.AssertionError: local dir parent not created with proper permissions expected:<rwxr-xr-x>
but was:<rwxrwxr-x>
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.failNotEquals(Assert.java:743)
> 	at org.junit.Assert.assertEquals(Assert.java:118)
> 	at org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection.testCreateDirectories(TestDirectoryCollection.java:104)
> {code}
> I found it was because testDiskSpaceUtilizationLimit ran before testCreateDirectories
when running test, then directory "dirA" was created in test function testDiskSpaceUtilizationLimit.
When testCreateDirectories tried to create "dirA" with specified permission, it found "dirA"
has already been there and it did nothing.

This message was sent by Atlassian JIRA

View raw message