Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7001

If shared cache upload is terminated in the middle, the temp file will never be deleted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      There is a missing deleteTempFile(tempPath);

            tempPath = new Path(directoryPath, getTemporaryFileName(actualPath));
            if (!uploadFile(actualPath, tempPath)) {
              LOG.warn("Could not copy the file to the shared cache at " + tempPath);
              return false;
            }
      

      Attachments

        1. YARN-7001.004.patch
          5 kB
          Sen Zhao
        2. YARN-7001.003.patch
          4 kB
          Sen Zhao
        3. YARN-7001.002.patch
          3 kB
          Sen Zhao
        4. YARN-7001.001.patch
          1 kB
          Sen Zhao

        Issue Links

          Activity

            People

              Sen Zhao Sen Zhao
              miklos.szegedi@cloudera.com Miklos Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: