[Improvement][worker] Detect the configuration of the path type when the service restarts
Search before asking
- [X] I had searched in the issues and found no similar feature requirement.
Description
When the hardware fails, it is mainly the disk. At this time, the service needs to be restarted. For services such as datanode, it is necessary to check whether the relevant data directory exists.There is no need for automatic creation. The code should do this when doing configuration refresh. It didn’t do this when starting the service. I’m not sure if there is an existing corresponding function.
Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Directory configuration is only automatically generated when the configuration is refreshed
Directory configuration is only automatically generated when the configuration is refreshed
Whether to consider this kind of disk failure in the future, it will be automatically created when the service is restarted, and the probability of this kind of hardware failure is still relatively high when the cluster is large