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

Refactor logging for AbstractMetadataRebuilder

    XMLWordPrintable

    Details

    • Notability:
      n/a

      Description

      Further to adding support for sha256 and sha512 checksums for Maven artifacts in NXRM 3.29.0, when a maven-metadata rebuild takes place (where checksums are rebuilt), the nexus.log can be spammed with the following WARN logging:

      2021-03-22 05:50:59,537+0100 WARN [quartz-11-thread-7] *SYSTEM org.sonatype.nexus.repository.maven.internal.orient.OrientMetadataRebuilder$Worker - Asset with path MavenPath{path=‘[...].jar’, fileName=‘[...].jar’, hashType=null} lacks checksum SHA512
      
      2021-03-22 05:50:59,539+0100 WARN [quartz-11-thread-7] *SYSTEM org.sonatype.nexus.repository.maven.internal.orient.OrientMetadataRebuilder$Worker - Asset with path MavenPath{path=‘[...].pom’, fileName=‘[...].pom’, hashType=null} lacks checksum SHA256

      This logging originates from org.sonatype.nexus.repository.maven.internal.hosted.metadata.AbstractMetadataRebuilder. It can occur for artifacts that were uploaded pre NXRM 3.29 and did not have a sha256/sha512 checksum generated for them.

      Expected:

      As this logging can potentially occur for hundreds if not thousands of artifacts, it should be moved to a more granular log level of TRACE. 

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            hardeepn Hardeep Nagra
            Last Updated By:
            Hardeep Nagra Hardeep Nagra
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title