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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Sen Zhao Sen Zhao Assign to me
            miklos.szegedi@cloudera.com Miklos Szegedi

            Dates

              Created:
              Updated:

              Slack

                Issue deployment