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

ConcurrentModificationException from lock step

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Lockable Resources Plugin 2.10
      Jenkins 2.235.3
    • Similar Issues:

      Description

       

       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.getAllLabels(LockableResourcesManager.java:136)
        at org.jenkins.plugins.lockableresources.LockableResourcesManager.isValidLabel(LockableResourcesManager.java:131)
        at org.jenkins.plugins.lockableresources.LockStepResource.validate(LockStepResource.java:87)
        at org.jenkins.plugins.lockableresources.LockStep.validate(LockStep.java:138)
        at org.jenkins.plugins.lockableresources.LockStepExecution.start(LockStepExecution.java:38)
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:286)
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:179)
        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)
      

       

      Based on the code, this can also happen for the following methods:

       

      org.jenkins.plugins.lockableresources.LockableResourcesManager#checkCurrentResourcesStatus
      org.jenkins.plugins.lockableresources.LockableResourcesManager#fromName
      org.jenkins.plugins.lockableresources.LockableResourcesManager#getAllLabels
      org.jenkins.plugins.lockableresources.LockableResourcesManager#getDeclaredResources
      org.jenkins.plugins.lockableresources.LockableResourcesManager#getFreeResourceAmount
      org.jenkins.plugins.lockableresources.LockableResourcesManager#getResourcesFromBuild
      org.jenkins.plugins.lockableresources.LockableResourcesManager#getResourcesFromProject
      org.jenkins.plugins.lockableresources.LockableResourcesManager#getResourcesWithLabel
      org.jenkins.plugins.lockableresources.LockableResourcesManager#getResourcesMatchingScript
      

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            seyguai Nicolas Boussuge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: