[ 
https://issues.apache.org/jira/browse/MAPREDUCE-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729595#action_12729595
 ] 

Devaraj Das commented on MAPREDUCE-626:
---------------------------------------

This patch has a timing issue. What if the tracker-expiry thread hasn't run? 
Before asking for a task from the job, you should ensure that the TT is lost. 
One way is to factor out the body of the expiry thread's run method into a 
separate method within the expiry-thread class. Then you can manually invoke 
that method from the testcase. Also, we should avoid Thread.sleep in the test.

> Modify TestLostTracker to improve execution time
> ------------------------------------------------
>
>                 Key: MAPREDUCE-626
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-626
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Jothi Padmanabhan
>            Assignee: Jothi Padmanabhan
>            Priority: Minor
>         Attachments: mapred-626-v1.patch, mapred-626.patch, mapred-626.patch
>
>
> This test can be made faster with a few modifications

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

Reply via email to