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

Yum generated temp files are not deleted.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.30.1, 3.35.0
    • Fix Version/s: 3.37.0
    • Component/s: Blobstore, Yum
    • Labels:
    • Notability:
      3

      Description

      Temp files generated by Yum repos during a group metadata merge are not removed after the merge is completed. 

      To reproduce:

      1. On a clean 3.35 instance, create a set of yum repos/groups with the following structure against the default blob store:

      yum.repos (yum-group)
          ├ ⧈ centos-repos (yum-group)
          │  ├ ▶ mirror.centos.org.extras (yum-proxy) ≻ http://mirror.centos.org/centos/7/extras/x86_64/
          │  ├ ▶ mirror.centos.org.updates (yum-proxy) ≻ http://mirror.centos.org/centos/7/updates/x86_64/
          │  └ ▶ mirror.centos.org.base (yum-proxy) ≻ http://mirror.centos.org/centos-7/7/os/x86_64/
      

      2. Check the <sonatype-work>/blobs/default/content/tmp directory and observe it is empty.

      3. Make a request for the repomd.xml via top level group e.g.

      curl -O http://localhost:8081/repository/yum.repos/repodata/repomd.xml

      4. Check the <sonatype-work>/blobs/default/content/tmp directory again and this time observe several temporary blobs exist all totalling ~54mb which have not been removed.

      Expected:

      These temp files should be deleted after the merge request completes.

      Workaround:

      Stop Nexus and manually delete the temp files.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vhashock Vitalii Hashock
              Reporter:
              hardeepn Hardeep Nagra
              Last Updated By:
              Hardeep Nagra Hardeep Nagra
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title