hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jun Gong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-5475) Test failed for TestAggregatedLogFormat on trunk
Date Fri, 12 Aug 2016 15:53:20 GMT

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

Jun Gong commented on YARN-5475:
--------------------------------

Thanks [~GergelyNovak] for the analysis.

{{testForCorruptedAggregatedLogs()}} calls {{writeSrcFileAndALog}}, and there is {{LogWriter
logWriter = new LogWriter(conf, remoteAppLogFile, ugi);}} in {{writeSrcFileAndALog}}(note
that the {{conf}} is a global variable), it will change {{conf}}'s file mask by {{fc.setUMask(APP_LOG_FILE_UMASK);}}
in LogWriter's default constructor. So after testForCorruptedAggregatedLogs, the file mask
will changed to rw-r----, and it causes the problem.

> Test failed for TestAggregatedLogFormat on trunk
> ------------------------------------------------
>
>                 Key: YARN-5475
>                 URL: https://issues.apache.org/jira/browse/YARN-5475
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Junping Du
>
> From some jenkins run: https://builds.apache.org/job/PreCommit-YARN-Build/12651/artifact/patchprocess/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-common.txt
> The error message for the test is:
> {noformat}
> Tests run: 3, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 1.114 sec <<<
FAILURE! - in org.apache.hadoop.yarn.logaggregation.TestAggregatedLogFormat
> testReadAcontainerLogs1(org.apache.hadoop.yarn.logaggregation.TestAggregatedLogFormat)
 Time elapsed: 0.012 sec  <<< ERROR!
> java.io.IOException: Unable to create directory : /testptch/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/target/TestAggregatedLogFormat/testReadAcontainerLogs1/srcFiles/application_1_0001/container_1_0001_01_000001/subDir
> 	at org.apache.hadoop.yarn.logaggregation.TestAggregatedLogFormat.getOutputStreamWriter(TestAggregatedLogFormat.java:403)
> 	at org.apache.hadoop.yarn.logaggregation.TestAggregatedLogFormat.writeSrcFile(TestAggregatedLogFormat.java:382)
> 	at org.apache.hadoop.yarn.logaggregation.TestAggregatedLogFormat.testReadAcontainerLog(TestAggregatedLogFormat.java:211)
> 	at org.apache.hadoop.yarn.logaggregation.TestAggregatedLogFormat.testReadAcontainerLogs1(TestAggregatedLogFormat.java:185)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message