[JIRA] (JENKINS-44597) ConcurrentModificationException on releasing lock

5 views
Skip to first unread message

tobias-jenkins@23.gs (JIRA)

unread,
Oct 12, 2019, 11:18:03 AM10/12/19
to jenkinsc...@googlegroups.com
Tobias Gruetzmacher commented on Bug JENKINS-44597
 
Re: ConcurrentModificationException on releasing lock

This seems to have been addressed in release 2.1, please reopen with new evidence if it is still an issue.

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

tobias-jenkins@23.gs (JIRA)

unread,
Oct 12, 2019, 11:18:04 AM10/12/19
to jenkinsc...@googlegroups.com
Tobias Gruetzmacher resolved as Fixed
 
Jenkins / Bug JENKINS-44597
ConcurrentModificationException on releasing lock
Change By: Tobias Gruetzmacher
Status: Open Resolved
Resolution: Fixed
Released As: lockable-resources 2.1

jsmilani@mac.com (JIRA)

unread,
Apr 24, 2020, 6:28:03 PM4/24/20
to jenkinsc...@googlegroups.com

We encountered a similar issue with version 2.7. It was only one incident out of hundreds of runs, but might as well keep this ticket open if it can still happen.

[Pipeline] Start of Pipeline
[Pipeline] lock
Trying to acquire lock on [rcprod]
Resource [rcprod] did not exist. Created.
[Pipeline] // lock
[Pipeline] End of Pipeline
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:182)
	at org.jenkins.plugins.lockableresources.queue.LockableResourcesStruct.<init>(LockableResourcesStruct.java:83)
	at org.jenkins.plugins.lockableresources.LockStepExecution.start(LockStepExecution.java:56)
	at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:286)
	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:179)
	... 

We too are putting the lock outside the node:

lock("rcprod") {
    node() {
        ...
    }
}

Versions:

Jenkins 2.225
Lockable Resources plugin 2.7
Pipeline 2.6
Java openjdk version "1.8.0_212" 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

jsmilani@mac.com (JIRA)

unread,
Apr 24, 2020, 6:28:03 PM4/24/20
to jenkinsc...@googlegroups.com
John Smilanick reopened an issue
Change By: John Smilanick
Resolution: Fixed
Status: Resolved Reopened
Reply all
Reply to author
Forward
0 new messages