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

Hudson commented on AMBARI-16136:
---------------------------------

SUCCESS: Integrated in Ambari-branch-2.2 #686 (See 
[https://builds.apache.org/job/Ambari-branch-2.2/686/])
AMBARI-16136. Make temp filenames unique when creating files. (smagyari: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=35f2302adf86691d8ef98b07f7ad7e0ff5e8fe20])
* ambari-common/src/main/python/resource_management/core/sudo.py


> Make temp filenames unique when creating files
> ----------------------------------------------
>
>                 Key: AMBARI-16136
>                 URL: https://issues.apache.org/jira/browse/AMBARI-16136
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.2.1.1
>            Reporter: Sandor Magyari
>            Assignee: Sandor Magyari
>             Fix For: 2.2-next
>
>         Attachments: AMBARI-16136.patch
>
>
> When creating files on linux, ambari-agent use create_file() in sudo.py. Here 
> first a temp file created, copied over the right place later. The filename of 
> this temp file currently is:     tmpf_name = tempfile.gettempdir() + os.sep + 
> tempfile.template + str(time.time()). This may cause problems in case of 
> parallel executions, thread name or something random should be added to be 
> more unique.  



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

Reply via email to