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

Repository Health Check reports can create orphaned blobs and log WARN Attempt to access non-existent blob

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.12.1, 3.13.0
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      2
    • Notability:
      4

      Description

      During recent testing Joe Tom saw the following output 

      org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access non-existent blob bg-score-critical.png (/Users/jtom/Documents/Work/nexus/NX3/nexus-internal/target/sonatype-work/nexus3/blobs/default/content/vol-20/chap-35/bg-score-critical-png.properties)

      Looking at the blob store we can see that the properties file exists but it includes the extension .png in the name

      Also notice that there are duplicates of the file, is it possible that we are leaving behind dead blobs because the naming is wrong?

       

      Reproduce

      Load a repository with components. Enable Repository Health Check on that repository.

      A script added in 3.13.0 can be run to detect and delete orphaned blobs and this will report blobs created by RHC as orphaned.

      OrphanedBlobFinder script only available as of 3.13.0
      import org.sonatype.nexus.repository.tools.OrphanedBlobFinder
      
      def orphanedBlobFinder = container.lookup(OrphanedBlobFinder.class.name)
      
      orphanedBlobFinder.delete()
      

       

      Diagnosis

      The repository health check feature should not be creating orphaned blobs- this issue should be fixed. However presence of the WARN messages for the RHC generated blobs can be ignored by Nexus users until we ship a fix for that issue.

       

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jstephens Joseph Stephens
            Last Updated By:
            Rich Seddon Rich Seddon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title