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

CleanupTask causes "Nested DB TX!"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.23.0
    • Fix Version/s: None
    • Component/s: Cleanup
    • Labels:
      None

      Description

      The log of Nexus was flooded by failed CleanupTask entries, till it had a size of 13 GB.

      The version of Nexus in use is 3.23.0-03.

      2020-05-25 01:00:02,103+0200 ERROR [quartz-9-thread-20]  *SYSTEM org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl - Failed to delete components.
      java.lang.IllegalArgumentException: Nested DB TX!
              at com.google.common.base.Preconditions.checkArgument(Preconditions.java:135)
              at org.sonatype.nexus.repository.storage.StorageTxImpl.<init>(StorageTxImpl.java:154)
              at org.sonatype.nexus.repository.storage.StorageFacetImpl.openStorageTx(StorageFacetImpl.java:291)
              at org.sonatype.nexus.repository.storage.StorageFacetImpl.lambda$0(StorageFacetImpl.java:157)
              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 org.sonatype.nexus.repository.storage.DefaultComponentMaintenanceImpl.doBatchDelete(DefaultComponentMaintenanceImpl.java:190)
              at org.sonatype.nexus.repository.storage.DefaultComponentMaintenanceImpl.deleteComponents(DefaultComponentMaintenanceImpl.java:121)
              at org.sonatype.nexus.cleanup.internal.method.DeleteCleanupMethod.run(DeleteCleanupMethod.java:48)
              at org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl.deleteByPolicy(CleanupServiceImpl.java:127)
              at org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl.lambda$1(CleanupServiceImpl.java:105)
              at java.util.ArrayList.forEach(ArrayList.java:1257)
              at org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl.cleanup(CleanupServiceImpl.java:104)
              at org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl.lambda$0(CleanupServiceImpl.java:94)
              at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:407)
              at org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl.cleanup(CleanupServiceImpl.java:92)
              at org.sonatype.nexus.cleanup.internal.task.CleanupTask.execute(CleanupTask.java:46)
              at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:100)
              at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:143)
              at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.sonatype.nexus.quartz.internal.QuartzThreadPool.lambda$0(QuartzThreadPool.java:145)
              at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40)
              at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
              at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            xpyrus Robert Seidel
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title