[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602346#comment-14602346 ] Hadoop QA commented on YARN-3850: - \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | pre-patch | 15m 41s | Pre-patch trunk compilation is healthy. | | {color:green}+1{color} | @author | 0m 0s | The patch does not contain any @author tags. | | {color:green}+1{color} | tests included | 0m 0s | The patch appears to include 2 new or modified test files. | | {color:green}+1{color} | javac | 7m 24s | There were no new javac warning messages. | | {color:green}+1{color} | javadoc | 9m 31s | There were no new javadoc warning messages. | | {color:green}+1{color} | release audit | 0m 20s | The applied patch does not increase the total number of release audit warnings. | | {color:green}+1{color} | checkstyle | 0m 38s | There were no new checkstyle issues. | | {color:red}-1{color} | whitespace | 0m 0s | The patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix. | | {color:green}+1{color} | install | 1m 32s | mvn install still works. | | {color:green}+1{color} | eclipse:eclipse | 0m 31s | The patch built with eclipse:eclipse. | | {color:green}+1{color} | findbugs | 1m 10s | The patch does not introduce any new Findbugs (version 3.0.0) warnings. | | {color:green}+1{color} | yarn tests | 5m 59s | Tests passed in hadoop-yarn-server-nodemanager. | | | | 42m 50s | | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12742014/YARN-3850.02.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | trunk / 1403b84 | | whitespace | https://builds.apache.org/job/PreCommit-YARN-Build/8353/artifact/patchprocess/whitespace.txt | | hadoop-yarn-server-nodemanager test log | https://builds.apache.org/job/PreCommit-YARN-Build/8353/artifact/patchprocess/testrun_hadoop-yarn-server-nodemanager.txt | | Test Results | https://builds.apache.org/job/PreCommit-YARN-Build/8353/testReport/ | | Java | 1.7.0_55 | | uname | Linux asf907.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | | Console output | https://builds.apache.org/job/PreCommit-YARN-Build/8353/console | This message was automatically generated. > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602466#comment-14602466 ] Varun Saxena commented on YARN-3850: There seems to be some issue with whitespace check. The line it shows in result doesnt have any whitespace. The one below has, but that hasnt been added by me. > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14603068#comment-14603068 ] Jason Lowe commented on YARN-3850: -- +1 lgtm. Committing this. > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14603086#comment-14603086 ] Hudson commented on YARN-3850: -- FAILURE: Integrated in Hadoop-trunk-Commit #8072 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/8072/]) YARN-3850. NM fails to read files from full disks which can lead to container logs being lost and other issues. Contributed by Varun Saxena (jlowe: rev 40b256949ad6f6e0dbdd248f2d257b05899f4332) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/AppLogAggregatorImpl.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LocalDirsHandlerService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/RecoveredContainerLaunch.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/ContainerLogsUtils.java > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14603728#comment-14603728 ] Varun Saxena commented on YARN-3850: Thanks for the review and commit [~jlowe] > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604105#comment-14604105 ] Hudson commented on YARN-3850: -- FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #241 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/241/]) YARN-3850. NM fails to read files from full disks which can lead to container logs being lost and other issues. Contributed by Varun Saxena (jlowe: rev 40b256949ad6f6e0dbdd248f2d257b05899f4332) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/ContainerLogsUtils.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/RecoveredContainerLaunch.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LocalDirsHandlerService.java * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/AppLogAggregatorImpl.java > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604112#comment-14604112 ] Hudson commented on YARN-3850: -- FAILURE: Integrated in Hadoop-Yarn-trunk #971 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/971/]) YARN-3850. NM fails to read files from full disks which can lead to container logs being lost and other issues. Contributed by Varun Saxena (jlowe: rev 40b256949ad6f6e0dbdd248f2d257b05899f4332) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/RecoveredContainerLaunch.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LocalDirsHandlerService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/AppLogAggregatorImpl.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/ContainerLogsUtils.java * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604166#comment-14604166 ] Hudson commented on YARN-3850: -- FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #230 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/230/]) YARN-3850. NM fails to read files from full disks which can lead to container logs being lost and other issues. Contributed by Varun Saxena (jlowe: rev 40b256949ad6f6e0dbdd248f2d257b05899f4332) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/AppLogAggregatorImpl.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/RecoveredContainerLaunch.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/ContainerLogsUtils.java * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LocalDirsHandlerService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604174#comment-14604174 ] Hudson commented on YARN-3850: -- SUCCESS: Integrated in Hadoop-Hdfs-trunk #2169 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2169/]) YARN-3850. NM fails to read files from full disks which can lead to container logs being lost and other issues. Contributed by Varun Saxena (jlowe: rev 40b256949ad6f6e0dbdd248f2d257b05899f4332) * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/AppLogAggregatorImpl.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/ContainerLogsUtils.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/RecoveredContainerLaunch.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LocalDirsHandlerService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604191#comment-14604191 ] Hudson commented on YARN-3850: -- SUCCESS: Integrated in Hadoop-Mapreduce-trunk-Java8 #239 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/239/]) YARN-3850. NM fails to read files from full disks which can lead to container logs being lost and other issues. Contributed by Varun Saxena (jlowe: rev 40b256949ad6f6e0dbdd248f2d257b05899f4332) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/AppLogAggregatorImpl.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LocalDirsHandlerService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/RecoveredContainerLaunch.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/ContainerLogsUtils.java * hadoop-yarn-project/CHANGES.txt > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604200#comment-14604200 ] Hudson commented on YARN-3850: -- SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2187 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2187/]) YARN-3850. NM fails to read files from full disks which can lead to container logs being lost and other issues. Contributed by Varun Saxena (jlowe: rev 40b256949ad6f6e0dbdd248f2d257b05899f4332) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LocalDirsHandlerService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/RecoveredContainerLaunch.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/AppLogAggregatorImpl.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/ContainerLogsUtils.java * hadoop-yarn-project/CHANGES.txt > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14627311#comment-14627311 ] zhihai xu commented on YARN-3850: - Hi [~jlowe] and [~varun_saxena], I find {{ContainerLogsUtils#getContainerLogFile}} may also have this problem, because {{getContainerLogFile}} calls {{dirsHandler.getLogPathToRead}}, which uses configuration {{YarnConfiguration.NM_LOG_DIRS}} in {{LocalDirAllocator}}. {{YarnConfiguration.NM_LOG_DIRS}} will only include good disks after {{LocalDirsHandlerService#updateDirsAfterTest}} is called. I created YARN-3925 to fix this issue. It looks like ShuffleHandler doesn't have this problem because ShuffleHandler and LocalDirsHandlerService use different Configuration. {{LocalDirsHandlerService.serviceInit}} will create a copy of original Configuration: {code} // Clone the configuration as we may do modifications to dirs-list Configuration conf = new Configuration(config); {code} So ShuffleHandler will always use the original local dirs-list. > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3850) NM fails to read files from full disks which can lead to container logs being lost and other issues
[ https://issues.apache.org/jira/browse/YARN-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14642816#comment-14642816 ] Sangjin Lee commented on YARN-3850: --- The merge to 2.6.0 is straightforward. > NM fails to read files from full disks which can lead to container logs being > lost and other issues > --- > > Key: YARN-3850 > URL: https://issues.apache.org/jira/browse/YARN-3850 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation, nodemanager >Affects Versions: 2.7.0 >Reporter: Varun Saxena >Assignee: Varun Saxena >Priority: Blocker > Labels: 2.6.1-candidate > Fix For: 2.7.1 > > Attachments: YARN-3850.01.patch, YARN-3850.02.patch > > > *Container logs* can be lost if disk has become full(~90% full). > When application finishes, we upload logs after aggregation by calling > {{AppLogAggregatorImpl#uploadLogsForContainers}}. But this call in turns > checks the eligible directories on call to > {{LocalDirsHandlerService#getLogDirs}} which in case of disk full would > return nothing. So none of the container logs are aggregated and uploaded. > But on application finish, we also call > {{AppLogAggregatorImpl#doAppLogAggregationPostCleanUp()}}. This deletes the > application directory which contains container logs. This is because it calls > {{LocalDirsHandlerService#getLogDirsForCleanup}} which returns the full disks > as well. > So we are left with neither aggregated logs for the app nor the individual > container logs for the app. > In addition to this, there are 2 more issues : > # {{ContainerLogsUtil#getContainerLogDirs}} does not consider full disks so > NM will fail to serve up logs from full disks from its web interfaces. > # {{RecoveredContainerLaunch#locatePidFile}} also does not consider full > disks so it is possible that on container recovery, PID file is not found. -- This message was sent by Atlassian JIRA (v6.3.4#6332)