You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2010/04/15 07:11:49 UTC

[jira] Created: (MAPREDUCE-1703) TaskRunner would crash in finally block if taskDistributedCacheManager is null

TaskRunner would crash in finally block if taskDistributedCacheManager is null
------------------------------------------------------------------------------

                 Key: MAPREDUCE-1703
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1703
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: tasktracker
    Affects Versions: 0.21.0
            Reporter: Amareshwari Sriramadasu
             Fix For: 0.22.0


If TaskRunner throws an Exception before initializing taskDistributedCacheManager, it would crash in finally block at taskDistributedCacheManager.release(). TaskRunner would crash without doing tip.reportTaskFinished() thus not failing the task. Task will be marked FAILED after "mapred.task.timeout" because there is no report from  the task.

We should add a not null check for taskDistributedCacheManager in finally block.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (MAPREDUCE-1703) TaskRunner would crash in finally block if taskDistributedCacheManager is null

Posted by "Vinod K V (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-1703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod K V resolved MAPREDUCE-1703.
----------------------------------

    Resolution: Duplicate

Going to track this trivial fix as part of MAPREDUCE-1707 that is making changes to the same class.

> TaskRunner would crash in finally block if taskDistributedCacheManager is null
> ------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1703
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1703
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: tasktracker
>    Affects Versions: 0.21.0
>            Reporter: Amareshwari Sriramadasu
>             Fix For: 0.22.0
>
>
> If TaskRunner throws an Exception before initializing taskDistributedCacheManager, it would crash in finally block at taskDistributedCacheManager.release(). TaskRunner would crash without doing tip.reportTaskFinished() thus not failing the task. Task will be marked FAILED after "mapred.task.timeout" because there is no report from  the task.
> We should add a not null check for taskDistributedCacheManager in finally block.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.