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

java.util.ConcurrentModificationException in Matrix job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None

      This is the first time We've seen this issue. About a month ago we upgraded our Jenkins controllers from "2.387.3-lts-jdk11" to "2.426.1-lts-jdk11" and matrix-project plugin from "785.v06b_7f47b_c631" to "818.v7eb_e657db_924".

      We have a matrix job with a dynamic axis (for defining test suites to be run) and concurrency enabled. Today a build from this job failed with the following stacktrace when initiating the matrix jobs:

      09:42:28 FATAL: null
      09:42:28 java.util.ConcurrentModificationException
      09:42:28 	at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1043)
      09:42:28 	at java.base/java.util.ArrayList$Itr.next(ArrayList.java:997)
      09:42:28 	at hudson.matrix.Combination.toCompactString(Combination.java:210)
      09:42:28 	at hudson.matrix.MatrixConfiguration.getDisplayName(MatrixConfiguration.java:227)
      09:42:28 	at hudson.model.AbstractItem.getFullDisplayName(AbstractItem.java:491)
      09:42:28 	at hudson.console.ModelHyperlinkNote.encodeTo(ModelHyperlinkNote.java:42)
      09:42:28 	at hudson.matrix.DefaultMatrixExecutionStrategyImpl.scheduleConfigurationBuild(DefaultMatrixExecutionStrategyImpl.java:242)
      09:42:28 	at hudson.matrix.DefaultMatrixExecutionStrategyImpl.run(DefaultMatrixExecutionStrategyImpl.java:159)
      09:42:28 	at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:375)
      09:42:28 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
      09:42:28 	at hudson.model.Run.execute(Run.java:1895)
      09:42:28 	at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
      09:42:28 	at hudson.model.ResourceController.execute(ResourceController.java:101)
      09:42:28 	at hudson.model.Executor.run(Executor.java:442)
      09:42:28 Finished: FAILURE 

      I've attached scrubbed versions of the job config.xml and console output from the failed build.

            kohsuke Kohsuke Kawaguchi
            clarkbrianj Brian Clark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: