[
https://issues.apache.org/jira/browse/AMBARI-25221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Akhil S Naik resolved AMBARI-25221.
-----------------------------------
Resolution: Fixed
> 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)