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

Hudson commented on AMBARI-25221:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #10480 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/10480/])
[AMBARI-25221] fix directory creation from mkdir to mkdirs to avoid (rlevas: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=b99bb28bcf6c3adb3a1f557d8217ef8624b422b4])
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/mpack/MpackManager.java


> May crash the program if create directory failed!
> -------------------------------------------------
>
>                 Key: AMBARI-25221
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25221
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: bd2019us
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: 1.patch
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> Location : 
> ambari/ambari-server/src/main/java/org/apache/ambari/server/mpack/MpackManager.java:234,373,408,450
> Description: File.mkdir() requires that the parent directory have to exist, 
> which may cause the failure of file creation and crash the program. To ensure 
> safety, the "mkdirs()" should be preferred.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to