| 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;
|