Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-16215

Avoid unnecessary downloads in FilePath.installIfNecessaryFrom

      FilePath.installIfNecessaryFrom is used by the DownloadFromUrlInstaller when installing things like the JDK. The current implementation issues a regular GET request just to access the 'last modified' header. This also seems to be triggered per executor resulting in lots of stress on the server hosting the JDK zip/tar.gz.

      installIfNecessaryFrom could be changed to read the cached timestamp first, and issue that in the 'If-Modified-Since' header. http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html#setIfModifiedSince%28long%29

          [JENKINS-16215] Avoid unnecessary downloads in FilePath.installIfNecessaryFrom

          Lars Hvile created issue -
          Jesse Glick made changes -
          Labels New: performance
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Labels Original: performance New: 1.480.3-fixed performance
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 147028 ] New: JNJira + In-Review [ 192199 ]

            Unassigned Unassigned
            hultee Lars Hvile
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: