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

Sometimes java.util.ConcurrentModificationException during artifact download

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • artifactory-plugin
    • None
    • Jenkins 2.150.2
      Artifactory-Plugin: 3.1.0

      Sometimes, artifact downloading fails with a java.util.ConcurrentModificationException:

       

      Jenkins Artifactory Plugin version: 3.1.0
      Downloading artifacts using pattern: foo.zip
      Beginning to resolve Build Info published dependencies.
      Downloading 'http://artifactory/foo.zip'...
      [Thread downloader_0] downloading C:\Users\...\foo.zip0 as part of file http://artifactory/foo.zip threw an exception: 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
      

       

      The file is 134309195 bytes, which is bigger than 5120000, see build-info-extractor/.../DependenciesDownloaderHelper.java:

       public static final int MIN_SIZE_FOR_CONCURRENT_DOWNLOAD = 5120000;

          [JENKINS-57881] Sometimes java.util.ConcurrentModificationException during artifact download

          Yahav Itzhak added a comment -

          Thanks for reporting this issue, stefan_kb.

          We are looking into it.

          Yahav Itzhak added a comment - Thanks for reporting this issue, stefan_kb . We are looking into it.

          Stefan added a comment -

          FYI, I built a plugin that uses a patched buildextractor jar without the parallel download support.

          Since this is a sporadic problem, we are still watching if it happens again or not.

          Stefan added a comment - FYI, I built a plugin that uses a patched buildextractor jar without the parallel download support. Since this is a sporadic problem, we are still watching if it happens again or not.

          Yahav Itzhak added a comment - - edited

          stefan_kb,

          I created a Jira ticket to track this issue: HAP-1209

          Let's continue our conversation there.

          Yahav Itzhak added a comment - - edited stefan_kb , I created a Jira ticket to track this issue:  HAP-1209 Let's continue our conversation there.

            eyalbe Eyal Ben Moshe
            stefan_kb Stefan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: