Ethanlm opened a new pull request #3407:
URL: https://github.com/apache/storm/pull/3407
## What is the purpose of the change
When deployed to a new node,
`<parent-path>/supervisor/oci-resources/config/` might not exist, so
`mkdir("<parent-path>/supervisor/oci-resources/config/working")` will fail:
```
2021-08-09 19:17:34.047 o.a.s.d.s.Slot SLOT_6702 [ERROR] Failed launching
container
java.io.IOException: Couldn't create the directory:
/home/y/var/storm/supervisor/oci-resources/config/working
at
org.apache.storm.container.oci.HdfsOciResourcesLocalizer.localize(HdfsOciResourcesLocalizer.java:94)
```
We just need to make sure parent directories are always created by using
`mkdirs`
## How was the change tested
Tested to a newly deployed node and applied the path, submitted a word-count
topology and verified that the supervisor was able to create the directories
and run the topology properly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]