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

concurrent request paths cause ItemNotFoundException during population of not found cache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.1
    • Fix Version/s: 2.11.3
    • Component/s: Proxy Repository
    • Labels:
      None
    • Environment:
      JDK 8
    • Story Points:
      1
    • Sprint:
      Sprint 36, Sprint 37

      Description

      Create a Maven 2 proxy repository to https://download.newrelic.com called `Yum-Newrelic`

      *While* a request at this path is executing ( and ultimately returns with 302 or 404 ):

      /nexus/content/repositories/Yum-Newrelic/pub/newrelic/el5/x86_64
      

      before this request ends, a request at these paths at the same time fail or throw errors:

      /nexus/content/repositories/Yum-Newrelic/pub/newrelic/el5/x86_64/repodata/filelists.xml.gz
      /nexus/content/repositories/Yum-Newrelic/pub/newrelic/el5/x86_64/repodata/primary.xml.gz
      
      2015-02-03 09:03:35 DEBUG [qtp1782294418-246235]  org.eclipse.jetty.server.Server - REQUEST /nexus/content/repositories/Yum-Newrelic/pub/newrelic/el5/x86_64 on AsyncHttpConnection@17a2b15d,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-5,l=13,c=0},r=3
      
      2015-02-03 09:03:35 WARN  [qtp1782294418-246230] anonymous org.sonatype.nexus.proxy.maven.maven2.M2Repository - Nexus BUG in "Newrelic" [id=Yum-Newrelic], ItemNotFoundException during cache! Please report this issue along with the stack trace below!
      org.sonatype.nexus.proxy.ItemNotFoundException: Path /pub/newrelic/el5/x86_64/repodata/primary.xml.gz not found in local storage of repository "Newrelic" [id=Yum-Newrelic]
      	at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:283) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItem(DefaultFSLocalRepositoryStorage.java:308) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.repository.AbstractRepository.doRetrieveLocalItem(AbstractRepository.java:1240) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doCacheItem(AbstractProxyRepository.java:910) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doCacheItem(AbstractMavenRepository.java:482) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.maven.maven2.M2Repository.doCacheItem(M2Repository.java:231) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveRemoteItem(AbstractProxyRepository.java:1413) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:1147) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:1030) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:395) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.maven.maven2.M2Repository.doRetrieveItem(M2Repository.java:395) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:758) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:590) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:155) [nexus-core-2.11.1-01.jar:2.11.1-01]
      	at org.sonatype.nexus.content.internal.ContentServlet.doGet(ContentServlet.java:387) [nexus-content-plugin-2.11.1-01/:na]
      	at org.sonatype.nexus.content.internal.ContentServlet.service(ContentServlet.java:353) [nexus-content-plugin-2.11.1-01/:na]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet-3.0.0.v201112011016.jar:na]
      	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:288) [guice-servlet-3.1.10.jar:3.1.10]
      	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:278) [guice-servlet-3.1.10.jar:3.1.10]
      	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182) [guice-servlet-3.1.10.jar:3.1.10]
      	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93) [guice-servlet-3.1.10.jar:3.1.10]
      	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85) [guice-servlet-3.1.10.jar:3.1.10]
      	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112) [shiro-web-1.2.3.jar:1.2.3]
      	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [guice-servlet-3.1.10.jar:3.1.10]
      	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) [guice-servlet-3.1.10.jar:3.1.10]
      	at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82) [nexus-core-2.11.1-01.jar:2.11.1-01]
      2015-02-03 09:03:35 INFO  [qtp1782294418-246230] anonymous org.sonatype.nexus.proxy.maven.MavenFileTypeValidator - StorageFileItem Yum-Newrelic:/pub/newrelic/el5/x86_64/repodata/primary.xml.gz MIME-magic validation failed: 0 bytes length file, no content to validate
      2015-02-03 09:03:35 INFO  [qtp1782294418-246230] anonymous org.sonatype.nexus.proxy.repository.validator.DefaultFileTypeValidatorHub - File item Yum-Newrelic:/pub/newrelic/el5/x86_64/repodata/primary.xml.gz evaluated as INVALID during file type validation (validator=maven)
      2015-02-03 09:03:35 INFO  [qtp1782294418-246230] anonymous org.sonatype.nexus.proxy.maven.maven2.M2Repository - Proxied item Yum-Newrelic:/pub/newrelic/el5/x86_64/repodata/primary.xml.gz evaluated as INVALID during content validation (validator=filetypevalidator, sourceUrl=https://download.newrelic.com/pub/newrelic/el5/x86_64/repodata/primary.xml.gz)
      2015-02-03 09:03:35 DEBUG [qtp1782294418-246230]  org.eclipse.jetty.server.Server - RESPONSE /nexus/content/repositories/Yum-Newrelic/pub/newrelic/el5/x86_64/repodata/primary.xml.gz  404 handled=true
      2015-02-03 09:03:35 DEBUG [qtp1782294418-246235]  org.eclipse.jetty.server.Server - RESPONSE /nexus/content/repositories/Yum-Newrelic/pub/newrelic/el5/x86_64  404 handled=true
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title