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

WARN log spam from Docker - Delete incomplete uploads task for already soft-deleted uploads

    XMLWordPrintable

    Details

    • Notability:
      4

      Description

      Running the Docker - Delete incomplete uploads can result in many WARN level messages from the blob store implementation, both in the task log, and in the application log

      Sample subset of these types of messages:

      2021-02-02 22:30:00,128+0100 WARN  [quartz-11-thread-20]  *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access soft-deleted blob path$nexus-repository-docker/496bd7a5-fe13-4fdc-bb6b-73dd32d90190/0 attributes: /var/opt/nexus/sonatype-work/nexus3/blobs/docker_example_repo/content/directpath/nexus-repository-docker/496bd7a5-fe13-4fdc-bb6b-73dd32d90190/0.properties {deletedDateTime=1612292167295, deleted=true, @BlobStore.created-by=nexus-repository-docker, @BlobStore.direct-path=true, creationTime=1612292163286, @docker-range=null, @docker-name=cicd/tmp/maven-regression-test, sha1=da39a3ee5e6b4b0d3255bfef95601890afd80709, @BlobStore.blob-name=nexus-repository-docker/496bd7a5-fe13-4fdc-bb6b-73dd32d90190/0, deletedReason=Docker upload cleaned up., size=0}
      2021-02-02 22:30:00,128+0100 WARN  [quartz-11-thread-20]  *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access soft-deleted blob path$nexus-repository-docker/496bd7a5-fe13-4fdc-bb6b-73dd32d90190/7e90ff00-cf80-48da-801b-bd13da4f490d attributes: /var/opt/nexus/sonatype-work/nexus3/blobs/docker_example_repo/content/directpath/nexus-repository-docker/496bd7a5-fe13-4fdc-bb6b-73dd32d90190/7e90ff00-cf80-48da-801b-bd13da4f490d.properties {deletedDateTime=1612292167297, deleted=true, @BlobStore.created-by=nexus-repository-docker, @BlobStore.direct-path=true, creationTime=1612292165570, @docker-range=null, @docker-name=cicd/tmp/maven-regression-test, sha1=5be09201add5c2ccc116e3a9ca925faef837356e, @BlobStore.blob-name=nexus-repository-docker/496bd7a5-fe13-4fdc-bb6b-73dd32d90190/7e90ff00-cf80-48da-801b-bd13da4f490d, deletedReason=Docker upload cleaned up., size=112540948}
      2021-02-02 22:30:00,129+0100 WARN  [quartz-11-thread-20]  *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access soft-deleted blob path$nexus-repository-docker/496bd7a5-fe13-4fdc-bb6b-73dd32d90190/9e7b70eb-739a-4506-9790-1d931167ae3e attributes: /var/opt/nexus/sonatype-work/nexus3/blobs/docker_example_repo/content/directpath/nexus-repository-docker/496bd7a5-fe13-4fdc-bb6b-73dd32d90190/9e7b70eb-739a-4506-9790-1d931167ae3e.properties {deletedDateTime=1612292167301, deleted=true, @BlobStore.created-by=nexus-repository-docker, @BlobStore.direct-path=true, creationTime=1612292165589, @docker-range=null, @docker-name=cicd/tmp/maven-regression-test, sha1=da39a3ee5e6b4b0d3255bfef95601890afd80709, @BlobStore.blob-name=nexus-repository-docker/496bd7a5-fe13-4fdc-bb6b-73dd32d90190/9e7b70eb-739a-4506-9790-1d931167ae3e, deletedReason=Docker upload cleaned up., size=0}
      2021-02-02 22:30:00,129+0100 WARN  [quartz-11-thread-20]  *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access soft-deleted blob path$nexus-repository-docker/e1c9c3c8-d213-46e4-adc9-a0b8d04d1f09/0 attributes: /var/opt/nexus/sonatype-work/nexus3/blobs/docker_example_repo/content/directpath/nexus-repository-docker/e1c9c3c8-d213-46e4-adc9-a0b8d04d1f09/0.properties {deletedDateTime=1612292167440, deleted=true, @BlobStore.created-by=nexus-repository-docker, @BlobStore.direct-path=true, creationTime=1612292167394, @docker-range=null, @docker-name=cicd/tmp/maven-regression-test, sha1=da39a3ee5e6b4b0d3255bfef95601890afd80709, @BlobStore.blob-name=nexus-repository-docker/e1c9c3c8-d213-46e4-adc9-a0b8d04d1f09/0, deletedReason=Docker upload cleaned up., size=0}
      2021-02-02 22:30:00,129+0100 WARN  [quartz-11-thread-20]  *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access soft-deleted blob path$nexus-repository-docker/e1c9c3c8-d213-46e4-adc9-a0b8d04d1f09/4317d72b-34f2-4c21-aa67-31543882658c attributes: /var/opt/nexus/sonatype-work/nexus3/blobs/docker_example_repo/content/directpath/nexus-repository-docker/e1c9c3c8-d213-46e4-adc9-a0b8d04d1f09/4317d72b-34f2-4c21-aa67-31543882658c.properties {deletedDateTime=1612292167442, deleted=true, @BlobStore.created-by=nexus-repository-docker, @BlobStore.direct-path=true, creationTime=1612292167409, @docker-range=null, @docker-name=cicd/tmp/maven-regression-test, sha1=cdb5265bf8d7b72f1e206cb70a7b38656bad392c, @BlobStore.blob-name=nexus-repository-docker/e1c9c3c8-d213-46e4-adc9-a0b8d04d1f09/4317d72b-34f2-4c21-aa67-31543882658c, deletedReason=Docker upload cleaned up., size=3332}
      2021-02-02 22:30:00,129+0100 WARN  [quartz-11-thread-20]  *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access soft-deleted blob path$nexus-repository-docker/e1c9c3c8-d213-46e4-adc9-a0b8d04d1f09/a12eeff2-9760-45a2-8152-5f388fad18c7 attributes: /var/opt/nexus/sonatype-work/nexus3/blobs/docker_example_repo/content/directpath/nexus-repository-docker/e1c9c3c8-d213-46e4-adc9-a0b8d04d1f09/a12eeff2-9760-45a2-8152-5f388fad18c7.properties {deletedDateTime=1612292167444, deleted=true, @BlobStore.created-by=nexus-repository-docker, @BlobStore.direct-path=true, creationTime=1612292167429, @docker-range=null, @docker-name=cicd/tmp/maven-regression-test, sha1=da39a3ee5e6b4b0d3255bfef95601890afd80709, @BlobStore.blob-name=nexus-repository-docker/e1c9c3c8-d213-46e4-adc9-a0b8d04d1f09/a12eeff2-9760-45a2-8152-5f388fad18c7, deletedReason=Docker upload cleaned up., size=0}
      
      

      Notice the deletedReason=Docker upload cleaned up. It appears the task is already accessing and iterating over already soft-deleted blobs.

      The point of the task is to soft-delete incomplete uploads - the WARN messages regarding accessing already soft-deleted blobs appear to be just noise and raise needless concerns from users.

      Expected

      Eliminate the WARN messages by not processing soft-deleted blobs in the first place. Only iterate non soft-deleted blobs.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Rich Seddon Rich Seddon
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title