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

Deleting a repository with an item in it errors in nexus.log

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0, 3.2.1
    • Fix Version/s: 3.2.1
    • Component/s: Repository
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Sprint 87

      Description

      I deployed the attached pom to the default maven-snapshots repo and subsequently deleted it and later noticed the below error in the nexus.log. I was able to repro this. This does not occur when the snapshot repo is empty.

      I did not check older NX3 or NX2 at this time however this reminded me of NEXUS-10759 where this doesn't occur (or at least the error is different) so there's either some subtly here or it's recent regression.
      As with NEXUS-10759 the repo as far as I can tell does delete properly (definitely disappears from the UI and is able to be recreated), so marking minor for now despite the scary error.
      Nothing bad shows on the UI side either.

      2016-12-08 17:58:16,807-0500 ERROR [event-1-thread-5] admin com.google.common.eventbus.EventBus.reentrant.async - Could not dispatch event EntityBatchEvent{events=[AssetDeletedEvent{metadata=AttachedEntityMetadata{schema=asset, document=#45:1{bucket:#26:1,format:maven2,last_updated:Thu Dec 08 17:51:30 EST 2016,attributes:[4],component:#34:0,name:jtt/jtzapp/1.0-SNAPSHOT/jtzapp-1.0-20161208.225130-1.jar,size:1467,content_type:application/java-archive,blob_ref:default@1CC43181-A2868557-7287045C-3ABDFEFE-CF78022F:25874fd9-c8c6-4647-abd3-f6b9e50995a7,last_accessed:Thu Dec 08 17:51:30 EST 2016} v1}, remoteNodeId=null}, AssetDeletedEvent{metadata=AttachedEntityMetadata{schema=asset, document=#47:1{bucket:#26:1,format:maven2,last_updated:Thu Dec 08 17:51:30 EST 2016,attributes:[4],component:#34:0,name:jtt/jtzapp/1.0-SNAPSHOT/jtzapp-1.0-20161208.225130-1.jar.md5,size:32,content_type:text/plain,blob_ref:default@1CC43181-A2868557-7287045C-3ABDFEFE-CF78022F:24efa603-c0fe-4f5b-9b50-544ac439c9e0,last_accessed:Thu Dec 08 17:51:30 EST 2016} v1}, remoteNodeId=null}, AssetDeletedEvent{metadata=AttachedEntityMetadata{schema=asset, document=#46:1{bucket:#26:1,format:maven2,last_updated:Thu Dec 08 17:51:30 EST 2016,attributes:[4],component:#34:0,name:jtt/jtzapp/1.0-SNAPSHOT/jtzapp-1.0-20161208.225130-1.jar.sha1,size:40,content_type:text/plain,blob_ref:default@1CC43181-A2868557-7287045C-3ABDFEFE-CF78022F:a7dbafab-6566-444e-aafe-7a2737868d86,last_accessed:Thu Dec 08 17:51:30 EST 2016} v1}, remoteNodeId=null}, AssetDeletedEvent{metadata=AttachedEntityMetadata{schema=asset, document=#48:1{bucket:#26:1,format:maven2,last_updated:Thu Dec 08 17:51:30 EST 2016,attributes:[4],component:#34:0,name:jtt/jtzapp/1.0-SNAPSHOT/jtzapp-1.0-20161208.225130-1.pom,size:1246,content_type:application/xml,blob_ref:default@1CC43181-A2868557-7287045C-3ABDFEFE-CF78022F:ad67bde8-9a9d-4cc2-9841-4a543b875599,last_accessed:Thu Dec 08 17:51:30 EST 2016} v1}, remoteNodeId=null}, AssetDeletedEvent{metadata=AttachedEntityMetadata{schema=asset, document=#42:2{bucket:#26:1,format:maven2,last_updated:Thu Dec 08 17:51:30 EST 2016,attributes:[4],component:#34:0,name:jtt/jtzapp/1.0-SNAPSHOT/jtzapp-1.0-20161208.225130-1.pom.md5,size:32,content_type:text/plain,blob_ref:default@1CC43181-A2868557-7287045C-3ABDFEFE-CF78022F:38b9d3b3-29d2-41b6-8168-04eda05a8579,last_accessed:Thu Dec 08 17:51:30 EST 2016} v1}, remoteNodeId=null}, AssetDeletedEvent{metadata=AttachedEntityMetadata{schema=asset, document=#41:2{bucket:#26:1,format:maven2,last_updated:Thu Dec 08 17:51:30 EST 2016,attributes:[4],component:#34:0,name:jtt/jtzapp/1.0-SNAPSHOT/jtzapp-1.0-20161208.225130-1.pom.sha1,size:40,content_type:text/plain,blob_ref:default@1CC43181-A2868557-7287045C-3ABDFEFE-CF78022F:3ac53ec4-3f51-4d09-a779-4a7b843405b4,last_accessed:Thu Dec 08 17:51:30 EST 2016} v1}, remoteNodeId=null}, ComponentDeletedEvent{metadata=AttachedEntityMetadata{schema=component, document=#34:0{bucket:#26:1,format:maven2,last_updated:Thu Dec 08 17:51:30 EST 2016,attributes:[1],group:jtt,name:jtzapp,version:1.0-20161208.225130-1} v2}, remoteNodeId=null}]} to subscriber org.sonatype.nexus.repository.search.ComponentSubscriber@665637c2 method [public void org.sonatype.nexus.repository.search.ComponentSubscriber.on(org.sonatype.nexus.common.entity.EntityBatchEvent)]
      java.lang.IllegalStateException: Invalid state: DELETED; allowed: [STARTED]
      	at org.sonatype.nexus.common.stateguard.StateGuard._ensure(StateGuard.java:115) [na:na]
      	at org.sonatype.nexus.common.stateguard.StateGuard.access$1(StateGuard.java:108) [na:na]
      	at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:269) [na:na]
      	at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53) [na:na]
      	at org.sonatype.nexus.repository.search.ComponentSubscriber.on(ComponentSubscriber.java:86) [na:na]
      	at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source) [na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_40]
      	at java.lang.reflect.Method.invoke(Method.java:497) [na:1.8.0_40]
      	at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) [na:na]
      	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) [na:na]
      	at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40) [org.sonatype.nexus.thread:3.2.0.SNAPSHOT]
      	at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [org.apache.shiro.core:1.3.2]
      	at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [org.apache.shiro.core:1.3.2]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_40]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_40]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
      

        Attachments

        1. nexus.log
          51 kB
        2. pom.xml
          1 kB

          Issue Links

            Activity

              People

              Assignee:
              fmilens Frederick Milens
              Reporter:
              jtom Joe Tom
              Last Updated By:
              Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title