Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 3.30.1
-
Fix Version/s: None
-
Component/s: Database OrientDB, Maven, REST
-
Labels:
-
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.