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

7 views
Skip to first unread message

stefan.voelkel.external@knorr-bremse.com (JIRA)

unread,
Jun 6, 2019, 8:12:02 AM6/6/19
to jenkinsc...@googlegroups.com
Stefan created an issue
 
Jenkins / Bug JENKINS-57881
Sometimes java.util.ConcurrentModificationException during artifact download
Issue Type: Bug Bug
Assignee: Eyal Ben Moshe
Components: artifactory-plugin
Created: 2019-06-06 12:11
Environment: Jenkins 2.150.2
Artifactory-Plugin: 3.1.0
Priority: Minor Minor
Reporter: Stefan

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;
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

yahavi@jfrog.com (JIRA)

unread,
Jul 2, 2019, 4:50:02 AM7/2/19
to jenkinsc...@googlegroups.com
Yahav Itzhak commented on Bug JENKINS-57881
 
Re: Sometimes java.util.ConcurrentModificationException during artifact download

Thanks for reporting this issue, Stefan.

We are looking into it.

stefan.voelkel.external@knorr-bremse.com (JIRA)

unread,
Jul 2, 2019, 5:57:02 AM7/2/19
to jenkinsc...@googlegroups.com
Stefan commented on Bug JENKINS-57881

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.

yahavi@jfrog.com (JIRA)

unread,
Jul 2, 2019, 7:05:03 AM7/2/19
to jenkinsc...@googlegroups.com

Stefan,

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

Let's continue our conversation there.

 

 

yahavi@jfrog.com (JIRA)

unread,
Jul 2, 2019, 7:05:03 AM7/2/19
to jenkinsc...@googlegroups.com
Yahav Itzhak edited a comment on Bug JENKINS-57881
[~stefan_kb],

I created a Jira ticket to track this issue: [HAP-1209|https://www.jfrog.com/jira/browse/HAP-1209]


Let's continue our conversation there.
Reply all
Reply to author
Forward
0 new messages