brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [2/2] brooklyn-server git commit: Closes #404
Date Fri, 04 Nov 2016 18:03:38 GMT
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’s 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’t have
an entity context so could not determine which entity it was talking
about.

This caused brooklyn-library’s `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 <svetoslav.neykov@cloudsoftcorp.com>
Authored: Fri Nov 4 20:03:26 2016 +0200
Committer: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Committed: Fri Nov 4 20:03:26 2016 +0200

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



Mime
View raw message