You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2016/09/30 18:57:20 UTC

[jira] [Resolved] (KAFKA-4233) StateDirectory fails to create directory if any parent directory does not exist

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

Guozhang Wang resolved KAFKA-4233.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 0.10.2.0

Issue resolved by pull request 1942
[https://github.com/apache/kafka/pull/1942]

> StateDirectory fails to create directory if any parent directory does not exist
> -------------------------------------------------------------------------------
>
>                 Key: KAFKA-4233
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4233
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 0.10.1.0
>            Reporter: Ryan Worsley
>            Assignee: Damian Guy
>             Fix For: 0.10.1.0, 0.10.2.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The method {{directoryForTask}} attempts to create a task directory but will silently fail to do so as it calls {{taskDir.mkdir();}} which will only create the leaf directory. 
> Calling {{taskDir.mkdirs();}} (note the 's') will create the entire path if any parent directory is missing.
> The constructor also attempts to create a bunch of directories using the former method and should be reviewed as part of any fix.



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