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

"DataStoreNotFoundException: Data store not found: 'null'" from Rebuild repository search task

    Details

    • Story Points:
      2
    • Sprint:
      NXRM Sentinels Sprint 31, NXRM Sentinels Sprint 32
    • Notability:
      3

      Description

      SYMPTOM:

      With NXRM 3 and PostgreSQL, running the Rebuild - Rebuild repository search task generates the following error

      2021-11-18 07:11:39,136+0000 ERROR [periodic-8-thread-1]  *SYSTEM org.sonatype.nexus.scheduling.internal.PeriodicJobServiceImpl - Periodic job threw exception
      org.sonatype.nexus.datastore.api.DataStoreNotFoundException: Data store not found: 'null'
              at org.sonatype.nexus.datastore.internal.DataStoreManagerImpl.lambda$1(DataStoreManagerImpl.java:136)
              at java.util.Optional.orElseThrow(Optional.java:290)
              at org.sonatype.nexus.datastore.internal.DataStoreManagerImpl.openSession(DataStoreManagerImpl.java:136)
              at org.sonatype.nexus.repository.content.store.ContentStoreSupport.openSession(ContentStoreSupport.java:101)
              at org.sonatype.nexus.repository.content.store.ContentStoreSupport.openSession(ContentStoreSupport.java:1)
              at org.sonatype.nexus.transaction.UnitOfWork.doOpenSession(UnitOfWork.java:247)
              at org.sonatype.nexus.transaction.UnitOfWork.openSession(UnitOfWork.java:222)
              at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54)
              at com.sonatype.nexus.tags.search.TagSearchDocumentExtension.lambda$0(TagSearchDocumentExtension.java:70)
              at org.sonatype.nexus.common.entity.Continuations$1.<init>(Continuations.java:90)
              at org.sonatype.nexus.common.entity.Continuations.iteratorOf(Continuations.java:89)
              at org.sonatype.nexus.common.entity.Continuations.iteratorOf(Continuations.java:80)
              at org.sonatype.nexus.common.entity.Continuations.lambda$0(Continuations.java:66)
              at java.lang.Iterable.spliterator(Iterable.java:101)
              at org.sonatype.nexus.common.entity.Continuations.streamOf(Continuations.java:47)
              at org.sonatype.nexus.common.entity.Continuations.streamOf(Continuations.java:52)
              at com.sonatype.nexus.tags.search.TagSearchDocumentExtension.getTags(TagSearchDocumentExtension.java:71)
              at com.sonatype.nexus.tags.search.TagSearchDocumentExtension.getFields(TagSearchDocumentExtension.java:64)
              at org.sonatype.nexus.repository.content.search.DefaultSearchDocumentProducer.getDocument(DefaultSearchDocumentProducer.java:122)
              at org.sonatype.nexus.repository.content.search.SearchFacetImpl.document(SearchFacetImpl.java:216)
              at org.sonatype.nexus.repository.search.index.SearchIndexServiceImpl.lambda$0(SearchIndexServiceImpl.java:290)
      ...
      

      REPRODUCE STEPS:

      Currently unknown but this happens when the repository does not have the "dataStoreName" attribute.
      Couldn't reproduce with the Nexus 3.36 official REST API.

      EXPECTED BEHAVIOUR:

      Any task should not fail because of missing "dataStoreName" attribute.
      Also, NXRM3 should have the way to fix those incorrect repositories.

        Attachments

          Activity

            People

            Assignee:
            orudyk Oleksii Rudyk
            Reporter:
            hosako Hajime Osako
            Last Updated By:
            Denise Chang Denise Chang
            Team:
            NXRM - Sentinels
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title