[
https://issues.apache.org/jira/browse/HELIX-815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
bd2019us updated HELIX-815:
---------------------------
Labels: pull-request-available (was: )
> File.mkdir() may fail and cause crash.
> --------------------------------------
>
> Key: HELIX-815
> URL: https://issues.apache.org/jira/browse/HELIX-815
> Project: Apache Helix
> Issue Type: Bug
> Components: helix-core
> Reporter: bd2019us
> Priority: Major
> Labels: pull-request-available
> Attachments: 1.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Location:
> helix-core/src/main/java/org/apache/helix/tools/commandtools/ZkGrep.java: 584
> The File.mkdir() API requires the parent directory have to exist, otherwise a
> failure will occur. To ensure the safety of file creation, the File.mkdirs()
> is preferred as it will create the parent directory as well if needed. This
> is important as if it fail, program may potentially crash. Besides, mkdirs()
> causes no extra overhead.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)