Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7716

ConcurrencyDependencyGraph deadlock if no root can be selected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.8.7, 3.9.0, 4.0.0-alpha-4
    • 3.8.8, 3.9.1, 4.0.0-alpha-5, 4.0.0
    • Core
    • None

    Description

      At Tycho we got a bug-report that results in a deadlock when calling the tycho-version-plugin:
      https://github.com/eclipse-tycho/tycho/issues/2169

      I debugged the problem and it seems that ConcurrencyDependencyGraph is actually the culprit here because it can return an empty list of projects to initially build. As no builds are scheduled then the code in the MultiThreadedBuilder waits forever for the result, this is what happening here:

      • There is one segment
        org.faktorips:base:pom:23.6.0-SNAPSHOT -> [org.eclipse.tycho:tycho-versions-plugin:3.0.4-SNAPSHOT:set-version]
      • This segment has a transitive reactor dependency to
        MavenProject: org.faktorips:codequality-config:23.6.0-SNAPSHOT @ faktorips.base/codequality-config/pom.xml

        (this is not a problem because we only execute a reactor=true mojo!)

      • So now the loop finds that there is no "independent" project and returns an empty list

      Attachments

        Activity

          People

            michael-o Michael Osipov
            laeubi Christoph Läubrich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: