Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18313

AliyunOSS: AliyunOSSBlockOutputStream should not mark the temporary file for deletion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.2, 3.2.4, 3.3.3
    • None
    • fs/oss

    Description

      AliyunOSSBlockOutputStream buffers data in local directory before uploading to OSS. It uses LocalDirAllocator.createTmpFileForWrite which will create a temp file on this directory and invoke DeleteOnExitHook.add to add the path to a set and will be deleted on VM exit through a shutdown hook. However, the size of set will be growing if the VM does not exit.

      Attachments

        Issue Links

          Activity

            People

              wujinhu wujinhu
              wujinhu wujinhu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m