Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4233

StateDirectory fails to create directory if any parent directory does not exist

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.1.0
    • Fix Version/s: 0.10.1.0, 0.10.2.0
    • Component/s: streams
    • Labels:
      None
    • Flags:
      Important

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                damianguy Damian Guy
                Reporter:
                ryanworsley Ryan Worsley
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified