Issue Details (XML | Word | Printable)

Key: CONTINUUM-2183
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Brett Porter
Reporter: Brett Porter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Continuum

project cycle can cause Continuum to fail to start

Created: 20/Apr/09 07:21 AM   Updated: 20/Apr/09 07:39 AM   Resolved: 20/Apr/09 07:39 AM
Return to search
Component/s: Core system
Affects Version/s: 1.3.2
Fix Version/s: 1.3.3

Time Tracking:
Not Specified

Complexity: Intermediate


 Description  « Hide

A database that worked under 1.2 failed as follows on start up, with no way to recover:

org.codehaus.plexus.util.dag.CycleDetectedException: Edge between 'Vertex{label='org.apache.maven.plugins:maven-changes-plugin:2.2-SNAPSHOT'}' and 'Vertex{label='org.apache.maven.plugins:maven-changes-plugin:2.2-SNAPSHOT'}' introduces 
to cycle in the graph org.apache.maven.plugins:maven-changes-plugin:2.2-SNAPSHOT --> org.apache.maven.plugins:maven-changes-plugin:2.2-SNAPSHOT
        at org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:127)
        at org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:107)
        at org.apache.continuum.utils.ProjectSorter.getSortedProjects(ProjectSorter.java:93)
        at org.apache.maven.continuum.DefaultContinuum.getProjectsInBuildOrder(DefaultContinuum.java:1228)
        at org.apache.maven.continuum.DefaultContinuum.createProjectScmRootForProjectGroup(DefaultContinuum.java:3485)
        at org.apache.maven.continuum.DefaultContinuum.initialize(DefaultContinuum.java:2468)


Brett Porter added a comment - 20/Apr/09 07:39 AM

prevent cycle from causing failures, and instead return a mostly sorted list. Continuum doesn't need failures on cycles.