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

REST asset resource times out on large repositories

    Details

      Description

      The below request to the asset REST resource on such a big repository times out:

      wget --timeout=3000 https://localhost/nexus/service/rest/beta/assets?repository=snapshots
      
      2018-06-05 13:08:03 ERROR 500: Server Error.
      

      nexus.log

      2018-06-05 13:08:03,936+0200 WARN  [qtp660026287-127676]  *UNKNOWN org.sonatype.nexus.siesta.internal.UnexpectedExceptionMapper - (ID dc28c128-c5bb-4770-b54d-44f585dd5afb) Unexpected exception: java.lang.IllegalStateException: Timed out reading query result from queue 326e0d50 after 60 seconds
      java.lang.IllegalStateException: Timed out reading query result from queue 326e0d50 after 60 seconds
      	at org.sonatype.nexus.repository.storage.OrientAsyncHelper$QueueConsumingIterable.hasNext(OrientAsyncHelper.java:201)
      	at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:42)
      	at com.google.common.collect.Iterators.addAll(Iterators.java:366)
      	at com.google.common.collect.Lists.newArrayList(Lists.java:165)
      	at com.google.common.collect.Lists.newArrayList(Lists.java:150)
      	at org.sonatype.nexus.repository.browse.internal.BrowseServiceImpl.getAssets(BrowseServiceImpl.java:329)
      	at org.sonatype.nexus.repository.browse.internal.BrowseServiceImpl.browseAssets(BrowseServiceImpl.java:188)
      	at org.sonatype.nexus.repository.rest.internal.resources.AssetsResource.getAssets(AssetsResource.java:105)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bradbeck Brad Beck
              Reporter:
              msurani Mahendra Surani
              CC:
              Christopher Richard Dobbs
              Last Updated By:
              Peter Lynch Peter Lynch
              Team:
              NXRM - Morpheus
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title