Skip to content

Commit 16ca56e

Browse files
authored
[STORM-3388] Followup fix: HdfsOciResourcesLocalizer should create necessary nonexistent parent directoires (apache#3407)
1 parent a87172a commit 16ca56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: external/storm-hdfs-oci/src/main/java/org/apache/storm/container/oci/HdfsOciResourcesLocalizer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public synchronized String localize(OciResource ociResource) throws IOException
8989
// this allows the operation to be atomic in case the supervisor dies.
9090
File workingDir = new File(dst.getParent() + "/working");
9191
if (!workingDir.exists()) {
92-
boolean dirCreated = workingDir.mkdir();
92+
boolean dirCreated = workingDir.mkdirs();
9393
if (!dirCreated) {
9494
throw new IOException("Couldn't create the directory: " + workingDir);
9595
}

0 commit comments

Comments
 (0)