Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4272

Karaf freezes when a circular dependency is introduced where a feature references itself over a chain of other features

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.4
    • 4.1.0
    • karaf
    • None

    Description

      Karaf freezes when a circular dependency is introduced where a features references itself over a chain of other features

      I did some experiments with circular dependencies where a feature references itself indirectly over some other features. In this case it does not matter if attribute prerequisite is set or not. After command feature:install c-references-a Karaf freezes and must be restarted.

      I would expect, that the feature:install command fails with an error message like this:

      "Feature com.foo.bar could not be installed because a circular reference:
      a-references-b
      b-references-c
      c-references-a"

      You can checkout a project which helps to reproduce the case from https://github.com/SourcePond/reproduce-feature-circular-dependency.git (Maven-Modules c-references-a and c-references-a-prerequisite-true). Simply install the root-project to have all necessary Maven dependencies.

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              roland.hauser@bechtle.ch Roland Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: