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

Concurrency issue in /service/rest/maven/download REST API

    Details

    • Notability:
      3

      Description

      The "/service/rest/maven/download" can fail with the following exception:

       

      2021-11-08 12:40:32,787-0500 ERROR [qtp314753310-53276] *UNKNOWN com.vestmark.nexus.plugin.maven.MavenResource - storageTx response exception:
      java.lang.IllegalStateException: The current database instance (com.orientechnologies.orient.core.db.OPartitionedDatabasePool$DatabaseDocumentTxPooled@7e0275e3) is not active on the current thread (Thread[qtp314753310-53276,5,main]). Current active database is: null
      at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.checkIfActive(ODatabaseDocumentTx.java:3416)
      at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.command(ODatabaseDocumentTx.java:737)
      at org.sonatype.nexus.orient.entity.action.ReadEntityByPropertyAction.execute(ReadEntityByPropertyAction.java:52)
      at org.sonatype.nexus.repository.storage.BucketEntityAdapter.read(BucketEntityAdapter.java:118)
      at org.sonatype.nexus.repository.storage.StorageTxImpl.bucketOf(StorageTxImpl.java:1050)
      at org.sonatype.nexus.repository.storage.StorageTxImpl.bucketsOf(StorageTxImpl.java:1063)
      at org.sonatype.nexus.repository.storage.StorageTxImpl.findAssets(StorageTxImpl.java:398)
      at org.sonatype.nexus.repository.storage.StorageTxImpl.findAssets(StorageTxImpl.java:404)
      at sun.reflect.GeneratedMethodAccessor443.invoke(Unknown Source)

      This seems to be correlated with running a "Repair - Rebuild Maven repository metadata" task at the same time the API is called.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Rich Seddon Rich Seddon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                tigCommentSecurity.panel-title