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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.1.0
    • 0.10.1.0, 0.10.2.0
    • streams
    • None
    • 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

              damianguy Damian Guy
              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