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

If an old indexing context is found when creating a new repository it should be deleted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.4
    • Fix Version/s: 2.14.6
    • Component/s: Search
    • Labels:
    • Story Points:
      2
    • Sprint:
      Core Sprint 102, Core Sprint 103, Core Sprint 104, Core Sprint 105, Core Sprint 106, Core Sprint 107

      Description

      When a repository is deleted in Nexus the search index context is not always deleted properly.

      If you later try to recreate the repository the old search index context will be found, and this will result in an error. The only way to recover from this is to shut the server down. manually remove the old index context from disk. Then restart and rebuild the index for the affected repository.

      Expected: If an old (stale) indexing context is present on disk when a repository is being created we should delete it, and create a new one.

      2017-07-31 13:16:54,482+0100 INFO  [qtp191745335-110930] fastds_admin org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl - Initializing non-existing prefix file of newly added "releases" [id=releases]
      2017-07-31 13:16:54,544+0100 ERROR [qtp191745335-110930] fastds_admin org.sonatype.nexus.index.DefaultIndexerManager - Old/stale indexing context releases-ctx for repository releases. Operation cancaled.
      2017-07-31 13:16:54,544+0100 INFO  [qtp191745335-110930] fastds_admin org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository "releases" [id=releases][contentClass=Maven2][mainFacet=org.sonatype.nexus.proxy.maven.MavenHostedRepository]
      2017-07-31 13:16:54,549+0100 INFO  [qtp191745335-110930] fastds_admin org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration made by fastds_admin...
      2017-07-31 13:16:55,056+0100 INFO  [pxpool-1-thread-19] fastds_admin org.sonatype.nexus.index.tasks.UpdateIndexTask - Scheduled task (UpdateIndexTask) started :: Updating repository index "releases" from path null and below.
      2017-07-31 13:16:55,068+0100 INFO  [pxpool-1-thread-19] fastds_admin org.sonatype.nexus.index.NexusScanningListener - Scanning of repositoryID="releases" started.
      2017-07-31 13:16:55,105+0100 WARN  [pxpool-1-thread-19] fastds_admin org.sonatype.nexus.index.tasks.UpdateIndexTask - Scheduled task (UpdateIndexTask) failed :: Updating repository index "releases" from path null and below. (started 2017-07-31T13:16:55+01:00, runtime 0:00:00.041)
      java.lang.RuntimeException: java.io.FileNotFoundException: _8.cfs
      	at org.apache.lucene.index.TieredMergePolicy$SegmentByteSizeDescending.compare(TieredMergePolicy.java:253) ~[na:na]
      	at org.apache.lucene.index.TieredMergePolicy$SegmentByteSizeDescending.compare(TieredMergePolicy.java:240) ~[na:na]
      	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324) ~[na:1.7.0_25]
      	at java.util.TimSort.sort(TimSort.java:189) ~[na:1.7.0_25]
      	at java.util.TimSort.sort(TimSort.java:173) ~[na:1.7.0_25]
      	at java.util.Arrays.sort(Arrays.java:659) ~[na:1.7.0_25]
      

        Attachments

          Activity

            People

            Assignee:
            bradbeck Brad Beck
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title