[
https://issues.apache.org/jira/browse/BROOKLYN-192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Zaccardo updated BROOKLYN-192:
-----------------------------------
Description:
When a `DynamicCluster` of entities, each of which have multiple
`brooklyn.children` entities, is created with an initial size greater than one:
{code:java}
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Error
invoking start at DynamicClusterImpl{id=vxtguIix}:
java.lang.IllegalStateException: On start of cluster
DynamicClusterImpl{id=vxtguIix}, failed to get to initial size of 2; size
is 1: Spec EntitySpec{type=interface
org.apache.brooklyn.entity.software.base.EmptySoftwareProcess} has parent
EmptySoftwareProcessImpl{id=hN8uSfbM} defined, but it is defined as a child
of EmptySoftwareProcessImpl{id=ft1Egn5i}
{code}
The exception is thrown here:
https://github.com/apache/incubator-brooklyn/blob/master/core/src/main/java/org/apache/brooklyn/core/objs/proxy/InternalEntityFactory.java#L210
It is thrown because the `brooklyn.children` specs have their parent values
erroneously assigned to an entity that is not actually their immediate parent.
was:
When a `DynamicCluster` of entities, each of which have multiple
`brooklyn.children` entities, is created with an initial size greater than one:
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Error
invoking start at DynamicClusterImpl{id=vxtguIix}:
java.lang.IllegalStateException: On start of cluster
DynamicClusterImpl{id=vxtguIix}, failed to get to initial size of 2; size
is 1: Spec EntitySpec{type=interface
org.apache.brooklyn.entity.software.base.EmptySoftwareProcess} has parent
EmptySoftwareProcessImpl{id=hN8uSfbM} defined, but it is defined as a child
of EmptySoftwareProcessImpl{id=ft1Egn5i}
The exception is thrown here:
https://github.com/apache/incubator-brooklyn/blob/master/core/src/main/java/org/apache/brooklyn/core/objs/proxy/InternalEntityFactory.java#L210
It is thrown because the `brooklyn.children` specs have their parent values
erroneously assigned to an entity that is not actually their immediate parent.
> Cannot create DynamicCluster of [entities with multiple children] of size
> greater than one
> ------------------------------------------------------------------------------------------
>
> Key: BROOKLYN-192
> URL: https://issues.apache.org/jira/browse/BROOKLYN-192
> Project: Brooklyn
> Issue Type: Bug
> Affects Versions: 0.9.0
> Reporter: Mike Zaccardo
>
> When a `DynamicCluster` of entities, each of which have multiple
> `brooklyn.children` entities, is created with an initial size greater than
> one:
> {code:java}
> org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
> org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Error
> invoking start at DynamicClusterImpl{id=vxtguIix}:
> java.lang.IllegalStateException: On start of cluster
> DynamicClusterImpl{id=vxtguIix}, failed to get to initial size of 2; size
> is 1: Spec EntitySpec{type=interface
> org.apache.brooklyn.entity.software.base.EmptySoftwareProcess} has parent
> EmptySoftwareProcessImpl{id=hN8uSfbM} defined, but it is defined as a child
> of EmptySoftwareProcessImpl{id=ft1Egn5i}
> {code}
> The exception is thrown here:
> https://github.com/apache/incubator-brooklyn/blob/master/core/src/main/java/org/apache/brooklyn/core/objs/proxy/InternalEntityFactory.java#L210
> It is thrown because the `brooklyn.children` specs have their parent values
> erroneously assigned to an entity that is not actually their immediate parent.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)