[JIRA] (JENKINS-57727) ConcurrentModificationException from lock step

6 views
Skip to first unread message

williambrode@gmail.com (JIRA)

unread,
May 28, 2019, 6:06:01 PM5/28/19
to jenkinsc...@googlegroups.com
William Brode created an issue
 
Jenkins / Bug JENKINS-57727
ConcurrentModificationException from lock step
Issue Type: Bug Bug
Assignee: Tobias Gruetzmacher
Components: lockable-resources-plugin
Created: 2019-05-28 22:05
Environment: Jenkins 2.150.2
Lockable Resources Plugin 2.5
Priority: Minor Minor
Reporter: William Brode

I got this ConcurrentModificationException when using "lock" step for several pipelines running on the same master at the same time. I believe it can happen when new locks are being created while the list of locks is being looped through.

java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
at java.util.ArrayList$Itr.next(ArrayList.java:859)
at org.jenkins.plugins.lockableresources.LockableResourcesManager.fromName(LockableResourcesManager.java:156)
at org.jenkins.plugins.lockableresources.queue.LockableResourcesStruct.<init>(LockableResourcesStruct.java:83)
at org.jenkins.plugins.lockableresources.LockStepExecution.start(LockStepExecution.java:62)
at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:268)
at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176)
at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jamesnswithers@gmail.com (JIRA)

unread,
Nov 19, 2019, 4:46:07 AM11/19/19
to jenkinsc...@googlegroups.com
James Withers commented on Bug JENKINS-57727
 
Re: ConcurrentModificationException from lock step

Getting the same issue for Jenkins 2.190.2 and Lockable Resources Plugin2.7.

Has happened a few times and seems to be happening when many jobs have started at the same time and they are all trying to use the lock step.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

tobias-jenkins@23.gs (JIRA)

unread,
Mar 11, 2020, 7:21:03 PM3/11/20
to jenkinsc...@googlegroups.com
Change By: Tobias Gruetzmacher
Status: Open Fixed but Unreleased
Resolution: Fixed
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

tobias-jenkins@23.gs (JIRA)

unread,
Apr 26, 2020, 6:31:03 PM4/26/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages