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

Automatically rebuild metadata files when missing blobs are encountered

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.41.0
    • Fix Version/s: None
    • Component/s: Maven, Scheduled Tasks
    • Labels:
    • Story Points:
      5
    • Notability:
      4

      Description

      After restore from backup it is not uncommon for some database references to point at files that no longer exist in blob storage.  When an attempt is made to download these files it results in a 500 error response.

      In the case of maven-metadata.xml files we can do better. We already rebuild these files during GET requests as needed when they are marked as dirty.  We should also consider rebuilding them when their blob references cannot be resolved.   

      Expected:  

      1. If a maven-metadata.xml file or its associated checksum files is no longer present on disk treat the maven-metadata.xml file as dirty, and rebuild it.
      2. If a maven-metadata.xml file or its associated checksum files is in soft deleted state, undelete it and keep going as normal

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Mahendra Surani Mahendra Surani
              Team:
              NXRM - Mad Max
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title