hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3830) AbstractYarnScheduler.createReleaseCache may try to clean a null attempt
Date Wed, 01 Jul 2015 14:43:05 GMT

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

Hudson commented on YARN-3830:
------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #8105 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/8105/])
YARN-3830. AbstractYarnScheduler.createReleaseCache may try to clean a (devaraj: rev 80a68d60560e505b5f8e01969dc3c168a1e5a7f3)
* hadoop-yarn-project/CHANGES.txt
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/TestAbstractYarnScheduler.java
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/AbstractYarnScheduler.java


> AbstractYarnScheduler.createReleaseCache may try to clean a null attempt
> ------------------------------------------------------------------------
>
>                 Key: YARN-3830
>                 URL: https://issues.apache.org/jira/browse/YARN-3830
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: scheduler
>            Reporter: nijel
>            Assignee: nijel
>             Fix For: 2.8.0
>
>         Attachments: YARN-3830_1.patch, YARN-3830_2.patch, YARN-3830_3.patch, YARN-3830_4.patch
>
>
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.AbstractYarnScheduler.createReleaseCache()
> {code}
> protected void createReleaseCache() {
>     // Cleanup the cache after nm expire interval.
>     new Timer().schedule(new TimerTask() {
>       @Override
>       public void run() {
>         for (SchedulerApplication<T> app : applications.values()) {
>           T attempt = app.getCurrentAppAttempt();
>           synchronized (attempt) {
>             for (ContainerId containerId : attempt.getPendingRelease()) {
>               RMAuditLogger.logFailure(
> {code}
> Here the attempt can be null since the attempt is created later. So null pointer exception
 will come
> {code}
> 2015-06-19 09:29:16,195 | ERROR | Timer-3 | Thread Thread[Timer-3,5,main] threw an Exception.
| YarnUncaughtExceptionHandler.java:68
> java.lang.NullPointerException
> 	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.AbstractYarnScheduler$1.run(AbstractYarnScheduler.java:457)
> 	at java.util.TimerThread.mainLoop(Timer.java:555)
> 	at java.util.TimerThread.run(Timer.java:505)
> {code}
> This will skip the other applications in this run.
> Can add a null check and continue with other applications



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

Mime
View raw message