Details
-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.12.1, 3.13.0
-
Fix Version/s: None
-
Component/s: Blobstore, Repository Health Check
-
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.
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.