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

Drop Inactive Staging Repositories task aborts if a repository is not found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14
    • Fix Version/s: 2.14.2
    • Component/s: Staging
    • Labels:
    • Story Points:
      2
    • Sprint:
      Sprint 82

      Description

      If a staging repository cleanup task encounters a staging repository that is no longer on it's clean up list it aborts running completely.

      2016-10-17 18:00:18 INFO [pxpool-1-thread-1] *TASK com.sonatype.nexus.staging.internal.task.DropInactiveRepositoriesTask - STARTED Drop staging repositories
      2016-10-17 18:00:18 INFO [pxpool-1-thread-1] *TASK com.sonatype.nexus.staging.internal.task.DropInactiveRepositoriesTask - Inactive repositories selected to drop: [build-36007, ..., build-36646]
      2016-10-17 18:00:18 INFO [pxpool-1-thread-1] *TASK com.sonatype.nexus.staging.internal.DefaultStagingManager - Dropping staging repositories [build-36007, ..., build-36646]
      2016-10-17 18:00:18 WARN [pxpool-1-thread-1] *TASK com.sonatype.nexus.staging.internal.DefaultStagingManager - Abort background; task preparations failed
      org.sonatype.nexus.proxy.NoSuchRepositoryException: Repository with ID="build-36202" not found
      	at org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.getRepository(DefaultRepositoryRegistry.java:124)
      	at com.sonatype.nexus.staging.internal.task.RepositoryDropTask$DropItem.<init>(RepositoryDropTask.java:79) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.RepositoryDropTask$DropItem.<init>(RepositoryDropTask.java:76) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.RepositoryDropTask.createItem(RepositoryDropTask.java:85) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.OperationTaskSupport$1.doApply(OperationTaskSupport.java:126) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.OperationTaskSupport$1.doApply(OperationTaskSupport.java:1) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.persist.ConfigurationFunctionSupport.apply(ConfigurationFunctionSupport.java:48) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.persist.DefaultStagingConfiguration.browsex(DefaultStagingConfiguration.java:616) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.OperationTaskSupport.resolveItem(OperationTaskSupport.java:113) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.OperationTaskSupport$OperationSupport.<init>(OperationTaskSupport.java:164) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.RepositoryDropTask$DropOperation.<init>(RepositoryDropTask.java:95) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.RepositoryDropTask.createOperation(RepositoryDropTask.java:264) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.RepositoryDropTask.createOperation(RepositoryDropTask.java:1) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.OperationTaskSupport.discoverOperations(OperationTaskSupport.java:401) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.OperationTaskSupport.prepare(OperationTaskSupport.java:386) ~[nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.DefaultStagingManager.prepareBackgroundTask(DefaultStagingManager.java:193) [nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.DefaultStagingManager.dropStagingRepositories(DefaultStagingManager.java:376) [nexus-staging-plugin-2.12.0-01/:na]
      	at com.sonatype.nexus.staging.internal.task.DropInactiveRepositoriesTask.execute(DropInactiveRepositoriesTask.java:146) [nexus-staging-plugin-2.12.0-01/:na]
      
      

      It shouldn't do this. Having this task complete is critical to end users who have large numbers of staging repositories, when the task doesn't run it can cause the entire instance to become unstable.

        Attachments

          Activity

            People

            Assignee:
            jtom Joe Tom
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title