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

Karthik Kambatla commented on MAPREDUCE-4964:
---------------------------------------------

The following non-HDFS tests fail on branch-1 with and without the patch:

{noformat}
./build/test/TEST-org.apache.hadoop.filecache.TestTrackerDistributedCacheManager.txt:2:Tests
 run: 11, Failures: 1, Errors: 0, Time elapsed: 18.272 sec
./build/test/TEST-org.apache.hadoop.mapred.TestJobRetire.txt:2:Tests run: 3, 
Failures: 1, Errors: 0, Time elapsed: 84.8 sec
./build/test/TEST-org.apache.hadoop.mapred.TestRawHistoryFile.txt:2:Tests run: 
3, Failures: 0, Errors: 1, Time elapsed: 27.018 sec
{noformat}

As far as the tests are concerned, I believe the patch is good to go.
                
> JobLocalizer#localizeJobFiles can potentially write job.xml to the wrong 
> user's directory
> -----------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-4964
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4964
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv1
>    Affects Versions: 1.1.1
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4964.patch, MR-4964.patch
>
>
> In the following code, if jobs corresponding to different users (X and Y) are 
> localized simultaneously, it is possible that jobconf can be written to the 
> wrong user's directory. (X's job.xml can be written to Y's directory)
> {code}
>   public void localizeJobFiles(JobID jobid, JobConf jConf,
>       Path localJobTokenFile, TaskUmbilicalProtocol taskTracker)
>       throws IOException, InterruptedException {
>     localizeJobFiles(jobid, jConf,
>         lDirAlloc.getLocalPathForWrite(JOBCONF, ttConf), localJobTokenFile,
>         taskTracker);
>   }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to