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

rubygems proxy repository not found cache not consulted

    XMLWordPrintable

    Details

    • Story Points:
      1
    • Sprint:
      Sprint 61 - Chinook

      Description

      Configure this:

      rubygems-group ( group repo )

      Connect to nexus with JMX to monitor the path cache ( see attached ) Object Count attribute.

      Configure remote.storage.outbound logger to DEBUG and tail nexus.log.

      Request a non-existent gem file.

      curl -v -o /dev/null http://localhost:8081/nexus/content/groups/rubygems-group/gems/fake-5.0.1.gem

      Expected 404 response.

      Notice the path-cache Object Count is now 1.

      Delete the cache item to prove that was the path that was cached

      curl -v -o /dev/null -X DELETE http://localhost:8081/nexus/service/local/data_cache/repositories/rubygems.org/content/gems/fake-5.0.1.gem -u admin:admin123

      Notice the Object Count is 0.

      Request the gem two more times. Notice the Object Count becomes 1 as expected.

      jvm 1    | 2016-01-08 15:36:24,705-0400 DEBUG [qtp922056297-85] anonymous remote.storage.outbound - [rubygems.org] GET http://rubygems.org/gems/fake-5.0.1.gem
      jvm 1    | 2016-01-08 15:36:24,911-0400 DEBUG [qtp922056297-85] anonymous remote.storage.outbound - [rubygems.org] Following 302 redirect http://rubygems.org/gems/fake-5.0.1.gem -> http://rubygems.global.ssl.fastly.net/gems/fake-5.0.1.gem
      jvm 1    | 2016-01-08 15:36:25,082-0400 DEBUG [qtp922056297-85] anonymous remote.storage.outbound - [rubygems.org] GET http://rubygems.org/gems/fake-5.0.1.gem -> HTTP/1.1 404 Not Found; 377.2 ms
      jvm 1    | 2016-01-08 15:36:27,494-0400 DEBUG [qtp922056297-84] anonymous remote.storage.outbound - [rubygems.org] GET http://rubygems.org/gems/fake-5.0.1.gem
      jvm 1    | 2016-01-08 15:36:27,599-0400 DEBUG [qtp922056297-84] anonymous remote.storage.outbound - [rubygems.org] Following 302 redirect http://rubygems.org/gems/fake-5.0.1.gem -> http://rubygems.global.ssl.fastly.net/gems/fake-5.0.1.gem
      jvm 1    | 2016-01-08 15:36:27,659-0400 DEBUG [qtp922056297-84] anonymous remote.storage.outbound - [rubygems.org] GET http://rubygems.org/gems/fake-5.0.1.gem -> HTTP/1.1 404 Not Found; 165.0 ms
      

      Notice in the nexus.log, nexus sends the request remote 2 times when only 1 time was expected.


      Effectively this means the not-found cache for rubygems proxy repositories is used, but not consulted.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              plynch Peter Lynch
              Reporter:
              plynch Peter Lynch
              CC:
              Christian Meier
              Last Updated By:
              Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title