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

Query timeout when running Publish Maven Indexes task.

    XMLWordPrintable

    Details

    • Story Points:
      5

      Description

      The Publish Maven Indexes task fails with query timeouts when run against large data sets.

      The machine has plenty of RAM (32Gb).  14Gb of space was allocated for OrientDB cache, 4Gb for heap.  

      2017-05-15 09:29:32,609+0200 ERROR [quartz-1-thread-12] *SYSTEM org.sonatype.nexus.repository.maven.tasks.PublishMavenIndexTask - Failed to run task 'Publish Maven indexes of orbis-dev' on repository 'orbis-dev'
      java.lang.IllegalStateException: Timed out reading query result from queue 589e7e80 after 60 seconds
      at org.sonatype.nexus.repository.storage.OrientAsyncHelper$QueueConsumingIterable.hasNext(OrientAsyncHelper.java:201) [na:na]
      at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:42) [com.google.guava:21.0.0]
      at com.google.common.collect.Iterators$6.computeNext(Iterators.java:615) [com.google.guava:21.0.0]
      at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:145) [com.google.guava:21.0.0]
      at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:140) [com.google.guava:21.0.0]
      at com.google.common.collect.MultitransformedIterator.hasNext(MultitransformedIterator.java:53) [com.google.guava:21.0.0]
      at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:42) [com.google.guava:21.0.0]
      at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:42) [com.google.guava:21.0.0]
      at org.apache.maven.index.reader.ChunkWriter.writeChunk(ChunkWriter.java:92) [na:na]
      at org.apache.maven.index.reader.IndexWriter.writeChunk(IndexWriter.java:150) [na:na]
      at org.sonatype.nexus.repository.maven.internal.MavenIndexPublisher.lambda$0(MavenIndexPublisher.java:216) [na:na]
      at org.sonatype.nexus.transaction.OperationPoint.proceed(OperationPoint.java:64) [org.sonatype.nexus.transaction:3.3.1.01]
      at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56) [org.sonatype.nexus.transaction:3.3.1.01]
      at org.sonatype.nexus.transaction.Operations.transactional(Operations.java:200) [org.sonatype.nexus.transaction:3.3.1.01]
      at org.sonatype.nexus.transaction.Operations.call(Operations.java:146) [org.sonatype.nexus.transaction:3.3.1.01]
      at org.sonatype.nexus.repository.maven.internal.MavenIndexPublisher.publishHostedIndex(MavenIndexPublisher.java:211) [na:na]
      at org.sonatype.nexus.repository.maven.internal.hosted.MavenHostedIndexFacet.publishIndex(MavenHostedIndexFacet.java:38) [na:na]
      at org.sonatype.nexus.repository.maven.tasks.PublishMavenIndexTask.execute(PublishMavenIndexTask.java:37) [na:na]
      at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:56) [na:na]
      at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:89) [org.sonatype.nexus.scheduling:3.3.1.01]
      at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:145) [org.sonatype.nexus.quartz:3.3.1.01]
      at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106) [org.sonatype.nexus.quartz:3.3.1.01]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [org.quartz-scheduler.quartz:2.2.2]
      at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40) [org.sonatype.nexus.thread:3.3.1.01]
      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.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_131]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_131]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_131]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_131]
      at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]
      

      The hosted repo orbis-dev is using a custom blobstore that no other repo uses.

      orbis-dev-2016 blob store:
      Blob count: 2922750
      Total size: 562.1 GB

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mdodgson Mark Dodgson
              Reporter:
              maxschaefer Max Schaefer
              Last Updated By:
              Peter Lynch
              Team:
              NXRM - Cypher
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title