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

Concurrent Modification Exception for CVS

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: core, cvs-plugin
    • Labels:
    • Environment:
      CentOS 6.0 Master, CentOS 5.5 slave, CVS
    • Similar Issues:

      Description

      CVS polling fails on some projects with the following exception (following is in the CVS Polling Log):

      ERROR: Failed to record SCM polling
      java.util.ConcurrentModificationException
      	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:782)
      	at java.util.ArrayList$Itr.next(ArrayList.java:754)
      	at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:356)
      	at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      	at hudson.scm.SCM.poll(SCM.java:373)
      	at hudson.model.AbstractProject.poll(AbstractProject.java:1323)
      	at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
      	at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
      	at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      	at java.lang.Thread.run(Thread.java:636)
      

      This causes the polling to fail, and the project to not find any differences, therefore not build on update.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            src/main/java/hudson/scm/CVSSCM.java
            http://jenkins-ci.org/commit/cvs-plugin/8a4b5f65fa6916372c7196b3f3663c3f86b63848
            Log:
            [FIXED JENKINS-12987]

            To remove items from the list while iterating, we need to use Iterator explicitly

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/scm/CVSSCM.java http://jenkins-ci.org/commit/cvs-plugin/8a4b5f65fa6916372c7196b3f3663c3f86b63848 Log: [FIXED JENKINS-12987] To remove items from the list while iterating, we need to use Iterator explicitly
            Hide
            dogfood dogfood added a comment -

            Integrated in plugins_cvs #16
            [FIXED JENKINS-12987] (Revision 8a4b5f65fa6916372c7196b3f3663c3f86b63848)

            Result = SUCCESS
            Kohsuke Kawaguchi :
            Files :

            • src/main/java/hudson/scm/CVSSCM.java
            Show
            dogfood dogfood added a comment - Integrated in plugins_cvs #16 [FIXED JENKINS-12987] (Revision 8a4b5f65fa6916372c7196b3f3663c3f86b63848) Result = SUCCESS Kohsuke Kawaguchi : Files : src/main/java/hudson/scm/CVSSCM.java

              People

              • Assignee:
                Unassigned
                Reporter:
                khushsk Sagar Khushalani
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: