Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-18276

UI upload leaves files in temporary directory after upload is complete

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.14.0
    • Fix Version/s: 3.15.0
    • Component/s: Upload UI
    • Labels:
    • Release Note:
      Yes

      Description

      Components uploaded in the upload UI create temporary files under sonatype-work/nexus3/tmp. 

      These files are not cleaned up until GC is run by the VM.

      -rw-r--r--  1 username  staff  319913 Oct 26 11:43 upload_78f6e4b8_5d15_4e17_85a6_33de787709ea_00000011.tmp
      -rw-r--r--  1 username  staff  4189874 Oct 26 11:44 upload_78f6e4b8_5d15_4e17_85a6_33de787709ea_00000028.tmp
      

      So it would seem that these files are deleted in object finalizers? You can't count on finalizers running, so this can lead to orphaned temp files consuming disk space.

      Expected:

      The temporary files should be deleted as soon as the upload is completed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dbradicich Damian Bradicich
                Reporter:
                rseddon Rich Seddon
                Last Updated By:
                Joe Tom
                Team:
                NXRM - Tron
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: