[ 
https://issues.apache.org/jira/browse/AMBARI-25221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AMBARI-25221:
------------------------------------
    Labels: pull-request-available  (was: )

> 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
>
> Location : 
> ambari/ambari-server/src/main/java/org/apache/ambari/server/mpack/MpackManager.java:408
> 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