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

Allow rebuild maven metadata task to fix invalid blob references for maven-metadata.xml

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: In Development
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.30.0
    • Fix Version/s: None
    • Component/s: Maven, Scheduled Tasks
    • Labels:
    • Notability:
      3

      Description

      After a restore from backup the component database can contain references to files that no longer exist in blob storage.   The reconcile component database from blob store task can be used to fix these, but it can take a very long time to run against a large blob store.  Typically the files that need to be fixed up with high priority are the repository metadata files.  And very typically these are maven files.  

      On several occasions now we've found that the fastest way to get someone back up and running is to allow the 'repair - rebuild maven metadata' task to recreate hosted metadata files when it encounters one that is an  invalid blob reference.  A patch to do this has been handed out several times now.

      I suggest we productize this change, I don't see much downside to trying to rebuild a maven-metadata.xml file if its corresponding blob file is missing.

      Expected

      If maven-metadata.xml files are not found in the blobstore but the database has a reference to it, rebuild them.

        Attachments

          Activity

            People

            Assignee:
            dbradicich Damian Bradicich
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Olu Shiyanbade Olu Shiyanbade
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title