You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by sv...@apache.org on 2016/11/04 18:03:38 UTC

[2/2] brooklyn-server git commit: Closes #404

Closes #404

Fix Transformer (for when registered before entity managed)

The transformer can be added before the entity is managed (e.g. if
specified in the entity spec, as is often done via yaml). In that case,
the entity\u2019s management context is still a `NonDeploymentManagementContext`.
The subscriptions are stored in a queue. When the entity is managed,
the subscriptions are replayed.

However, the queued subscriptions did not store the entity context.
Therefore when the transformer received its events, it didn\u2019t have
an entity context so could not determine which entity it was talking
about.

This caused brooklyn-library\u2019s `EnrichersSlightlySimplerYamlTest.testWithAppEnricher`
to fail.


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/90d166e8
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/90d166e8
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/90d166e8

Branch: refs/heads/master
Commit: 90d166e843aa503dd15eec476121e6b18c8e4405
Parents: 59cbcc5 e583d3a
Author: Svetoslav Neykov <sv...@cloudsoftcorp.com>
Authored: Fri Nov 4 20:03:26 2016 +0200
Committer: Svetoslav Neykov <sv...@cloudsoftcorp.com>
Committed: Fri Nov 4 20:03:26 2016 +0200

----------------------------------------------------------------------
 .../core/mgmt/internal/NonDeploymentManagementContext.java  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------