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

Snapshot removal task progress doesn't take into account maven-metadata.xml file updates

    Details

    • Story Points:
      3
    • Notability:
      3

      Description

      When the snapshot removal task is run it first deletes all snapshots, and while it is doing that it gathers up all the maven-metadata.xml files that need updating.  When this is done the progress reaches 99.99%.

      After this, it then updates all the maven-metadata.xml files.

      https://github.com/sonatype/nexus-internal/blob/release-3.8.0-02/plugins/nexus-repository-maven/src/main/java/org/sonatype/nexus/repository/maven/internal/RemoveSnapshotsFacetImpl.java#L138

      Progress isn't recorded for this last step.  But on a slow file system it can take a long time to update the maven-metadata.xml files.  This results in the task being stuck at 99.9% for a very long time, which makes it look broken.

       

      ACCEPTANCE

      • add logging to show progress when updating metadata

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Rich Seddon Rich Seddon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title