[
https://issues.apache.org/jira/browse/MAPREDUCE-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842767#action_12842767
]
Hemanth Yamijala commented on MAPREDUCE-1575:
---------------------------------------------
The staging directory is created in the tests in a path beginning with /tmp.
Hence, this directory will happen to exist and the code setting the permissions
continues to work without failing. However, it's just a happy coincidence and
could break on flimsy grounds. Logically, the test should not be setting the
permissions of /tmp if it is not sure it will exist.
> TestStreamingAsDifferentUser.testStreamingWithDistCache tries to set
> permissions for a non-existent file.
> ---------------------------------------------------------------------------------------------------------
>
> Key: MAPREDUCE-1575
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1575
> Project: Hadoop Map/Reduce
> Issue Type: Test
> Components: test
> Reporter: Hemanth Yamijala
> Priority: Minor
>
> TestStreamingAsDifferentUser.testStreamingWithDistCache, in an effort to mock
> public distributed cache files, sets up world executable permissions on the
> parent directory of a public cache file it creates in the test. This file is
> expected to be copied to hdfs://tmp/. However, the code tries to set
> permissions for the /tmp directory before the copy happens.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.