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

NPM group search document is not invalidated when member search documents change

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0, 3.2.1, 3.3.0, 3.4.0, 3.3.1, 3.3.2
    • Fix Version/s: 3.6.1
    • Component/s: NPM
    • Environment:
      (MacOSX)

      Description

      While testing NPM (mostly group search) I noticed this exception a few times. I could not find a reproducable case nor am I sure any adverse behavior but am filing after discussion with the team and also after seeing in 3.3.1, knowing it's not (recent) regression.

      2017-05-23 15:59:28,235-0400 ERROR [event-7-thread-26] admin com.google.common.eventbus.EventBus.nexus.async - Could not dispatch event com.sonatype.nexus.repository.npm.internal.NpmSearchIndexInvalidatedEvent@3e77c99e to subscriber com.sonatype.nexus.repository.npm.internal.NpmSearchIndexFacetGroup$$EnhancerByGuice$$999fc080@5757b488 method [public void com.sonatype.nexus.repository.npm.internal.NpmSearchIndexFacetGroup.on(com.sonatype.nexus.repository.npm.internal.NpmSearchIndexInvalidatedEvent)]
      java.lang.IllegalStateException: Unit of work has not been set
      	at com.google.common.base.Preconditions.checkState(Preconditions.java:444) [com.google.guava:21.0.0]
      	at org.sonatype.nexus.transaction.UnitOfWork.acquireTransaction(UnitOfWork.java:169) [na:na]
      	at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:53) [na:na]
      	at com.sonatype.nexus.repository.npm.internal.NpmSearchIndexFacetGroup.on(NpmSearchIndexFacetGroup.java:74) [na:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.8.0_40]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [na:1.8.0_40]
      	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.4.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

          Issue Links

            Activity

              People

              Assignee:
              moncef Moncef Ben-Soula
              Reporter:
              jtom Joe Tom
              Last Updated By:
              Peter Lynch
              Team:
              Nexus - Formats
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title