Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1209

ConcurrentModificationException during concurrent artifact download

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.4.0
    • Component/s: None
    • Labels:
      None

      Description

      ConcurrentModificationException in concurrent file download. Caused by using 1 HttpClient for 3 download threads.

      java.util.ConcurrentModificationException at java.util.AbstractList$Itr.remove(Unknown Source)
      at java.util.AbstractList.removeRange(Unknown Source)
      at java.util.AbstractList.clear(Unknown Source)
      at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:103)
      at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
      at org.jfrog.build.client.PreemptiveHttpClient.execute(PreemptiveHttpClient.java:102)
      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.execute(ArtifactoryDependenciesClient.java:200)
      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.downloadArtifact(ArtifactoryDependenciesClient.java:174)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.saveRequestToFile(DependenciesDownloaderHelper.java:385)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.access$000(DependenciesDownloaderHelper.java:41)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper$1.run(DependenciesDownloaderHelper.java:349)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.Exception: Error occurred while downloading http://artifactory/foo.zip, please refer to logs for more information at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.doConcurrentDownload(DependenciesDownloaderHelper.java:369)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadFileConcurrently(DependenciesDownloaderHelper.java:321)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadArtifact(DependenciesDownloaderHelper.java:276)
      ... 19 more
      

      This Jira replaces: https://issues.jenkins-ci.org/browse/JENKINS-57881

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yahavi Yahav Itzhak
              Reporter:
              yahavi Yahav Itzhak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: