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

Exception while trigger downstream projects

    XMLWordPrintable

Details

    Description

      I'm running maven jobs and Jenkins will generate dependency automatically based on the POM. However, when jenkins try to trigger downstream project, exception was seen and trigger failed. log is shown below:

      channel stopped
      FATAL: Comparison method violates its general contract!
      java.lang.IllegalArgumentException: Comparison method violates its general contract!
      at java.util.TimSort.mergeLo(TimSort.java:747)
      at java.util.TimSort.mergeAt(TimSort.java:483)
      at java.util.TimSort.mergeCollapse(TimSort.java:410)
      at java.util.TimSort.sort(TimSort.java:214)
      at java.util.TimSort.sort(TimSort.java:173)
      at java.util.Arrays.sort(Arrays.java:659)
      at java.util.Collections.sort(Collections.java:217)
      at hudson.tasks.BuildTrigger.execute(BuildTrigger.java:198)
      at hudson.model.AbstractBuild$AbstractBuildExecution.cleanUp(AbstractBuild.java:657)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1020)
      at hudson.model.Run.execute(Run.java:1532)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)

      Attachments

        Issue Links

          Activity

            rakeshjain rakesh jain added a comment -

            Running into a similar issue when running jenkins build with java 1.7.

            rakeshjain rakesh jain added a comment - Running into a similar issue when running jenkins build with java 1.7.

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            changelog.html
            core/src/main/java/hudson/model/DependencyGraph.java
            test/src/test/java/hudson/model/DependencyGraphTest.java
            http://jenkins-ci.org/commit/jenkins/8d0f7f5688bb4a6e9083a838695d378ee737f49d
            Log:
            [FIXED JENKINS-17247]

            Reimplemented a proper topological sort and generates a total order
            comparison function.

            Compare: https://github.com/jenkinsci/jenkins/compare/216f5c6a45ed...8d0f7f5688bb

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/DependencyGraph.java test/src/test/java/hudson/model/DependencyGraphTest.java http://jenkins-ci.org/commit/jenkins/8d0f7f5688bb4a6e9083a838695d378ee737f49d Log: [FIXED JENKINS-17247] Reimplemented a proper topological sort and generates a total order comparison function. Compare: https://github.com/jenkinsci/jenkins/compare/216f5c6a45ed...8d0f7f5688bb
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2638
            [FIXED JENKINS-17247] (Revision 8d0f7f5688bb4a6e9083a838695d378ee737f49d)

            Result = UNSTABLE
            kohsuke : 8d0f7f5688bb4a6e9083a838695d378ee737f49d
            Files :

            • changelog.html
            • test/src/test/java/hudson/model/DependencyGraphTest.java
            • core/src/main/java/hudson/model/DependencyGraph.java
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2638 [FIXED JENKINS-17247] (Revision 8d0f7f5688bb4a6e9083a838695d378ee737f49d) Result = UNSTABLE kohsuke : 8d0f7f5688bb4a6e9083a838695d378ee737f49d Files : changelog.html test/src/test/java/hudson/model/DependencyGraphTest.java core/src/main/java/hudson/model/DependencyGraph.java

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            core/src/main/java/hudson/model/DependencyGraph.java
            core/src/main/java/jenkins/util/DirectedGraph.java
            http://jenkins-ci.org/commit/jenkins/edb9bc5aca56cb521d58b30a53cea203e673efc1
            Log:
            JENKINS-17247 Refactored a bit to extract the SCC computation into a reusable code

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/model/DependencyGraph.java core/src/main/java/jenkins/util/DirectedGraph.java http://jenkins-ci.org/commit/jenkins/edb9bc5aca56cb521d58b30a53cea203e673efc1 Log: JENKINS-17247 Refactored a bit to extract the SCC computation into a reusable code
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2642

            Result = UNSTABLE

            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2642 Result = UNSTABLE

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            core/src/main/java/hudson/model/DependencyGraph.java
            test/src/test/java/hudson/model/DependencyGraphTest.java
            http://jenkins-ci.org/commit/jenkins/4d31fd776bb17de144da865a985e506795e63234
            Log:
            [FIXED JENKINS-17247]

            Reimplemented a proper topological sort and generates a total order
            comparison function.

            (cherry picked from commit 8d0f7f5688bb4a6e9083a838695d378ee737f49d)

            Conflicts:
            changelog.html

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/model/DependencyGraph.java test/src/test/java/hudson/model/DependencyGraphTest.java http://jenkins-ci.org/commit/jenkins/4d31fd776bb17de144da865a985e506795e63234 Log: [FIXED JENKINS-17247] Reimplemented a proper topological sort and generates a total order comparison function. (cherry picked from commit 8d0f7f5688bb4a6e9083a838695d378ee737f49d) Conflicts: changelog.html

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            core/src/main/java/hudson/model/DependencyGraph.java
            core/src/main/java/jenkins/util/DirectedGraph.java
            http://jenkins-ci.org/commit/jenkins/91cf8bce7c60c22daf1c5b97b321539e23f3a457
            Log:
            JENKINS-17247 Refactored a bit to extract the SCC computation into a reusable code

            (cherry picked from commit edb9bc5aca56cb521d58b30a53cea203e673efc1)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/model/DependencyGraph.java core/src/main/java/jenkins/util/DirectedGraph.java http://jenkins-ci.org/commit/jenkins/91cf8bce7c60c22daf1c5b97b321539e23f3a457 Log: JENKINS-17247 Refactored a bit to extract the SCC computation into a reusable code (cherry picked from commit edb9bc5aca56cb521d58b30a53cea203e673efc1)

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            core/src/main/java/jenkins/util/DirectedGraph.java
            http://jenkins-ci.org/commit/jenkins/8097aac90687990d1ddd4f0b2ab85d61de92a808
            Log:
            JENKINS-17247 Not sure why the compilation is failing but this seems to work

            (cherry picked from commit 0ee7a5eec1e6ed167b6f96b2a73a5dd1976f5679)

            Compare: https://github.com/jenkinsci/jenkins/compare/f9e176a5baa5...8097aac90687

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/jenkins/util/DirectedGraph.java http://jenkins-ci.org/commit/jenkins/8097aac90687990d1ddd4f0b2ab85d61de92a808 Log: JENKINS-17247 Not sure why the compilation is failing but this seems to work (cherry picked from commit 0ee7a5eec1e6ed167b6f96b2a73a5dd1976f5679) Compare: https://github.com/jenkinsci/jenkins/compare/f9e176a5baa5...8097aac90687

            People

              Unassigned Unassigned
              albenshao alben shao
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: