Details
-
Improvement
-
Status: Open
-
Not a Priority
-
Resolution: Unresolved
-
1.9.2, 1.12.0
-
None
Description
The tmpdir(config by historyserver.web.tmpdir) will be clean up when stop historyserver。But the directory may be shared, it is better to delete files that created by historyserver。
Part of the code to stop historyserver is shown below
try { LOG.info("Removing web dashboard root cache directory {}", webDir); FileUtils.deleteDirectory(webDir); } catch (Throwable t) { LOG.warn("Error while deleting web root directory {}", webDir, t); }
FileUtils.deleteDirectory:
// empty the directory first try { cleanDirectoryInternal(directory); }
cleanDirectoryInternal:
// remove all files in the directory for (File file : files) { if (file != null) { deleteFileOrDirectory(file); } }