[ https://issues.apache.org/jira/browse/YARN-5679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15577413#comment-15577413 ]
Akira Ajisaka commented on YARN-5679: ------------------------------------- Thanks [~miklos.szeg...@cloudera.com] for the comment! bq. setUMask will change the umask in the Configuration object, which may be picked up by any other thread in the process using the same configuration object before it is reverted. Agreed. bq. One option is to create a private configuration object to change the umask, the other is to apply the both umasks to a permission object and create the file with this permission object set. I chose the latter option because creating a private configuration object for each log costs too much. > TestAHSWebServices is failing > ----------------------------- > > Key: YARN-5679 > URL: https://issues.apache.org/jira/browse/YARN-5679 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver > Reporter: Akira Ajisaka > Assignee: Akira Ajisaka > Attachments: YARN-5679.01.patch, YARN-5679.02.patch > > > TestAHSWebServices.testContainerLogsForFinishedApps is failing. > https://builds.apache.org/job/hadoop-qbt-trunk-java8-linux-x86/176/testReport/ > {noformat} > java.lang.AssertionError: null > at org.junit.Assert.fail(Assert.java:86) > at org.junit.Assert.assertTrue(Assert.java:41) > at org.junit.Assert.assertTrue(Assert.java:52) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.webapp.TestAHSWebServices.createContainerLogInLocalDir(TestAHSWebServices.java:675) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.webapp.TestAHSWebServices.testContainerLogsForFinishedApps(TestAHSWebServices.java:581) > {noformat} > {noformat} > java.lang.AssertionError: null > at org.junit.Assert.fail(Assert.java:86) > at org.junit.Assert.assertTrue(Assert.java:41) > at org.junit.Assert.assertTrue(Assert.java:52) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.webapp.TestAHSWebServices.testContainerLogsForFinishedApps(TestAHSWebServices.java:519) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org