Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-18210

The tmpdir will be clean up when stop historyserver

    XMLWordPrintableJSON

Details

    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);
         }
      }
      

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            hejiefang JieFang.He
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: