GitHub user neykov opened a pull request:
https://github.com/apache/brooklyn-server/pull/385
Fix/task context
When executing a task which is already tagged with a context entity in the
execution context of another task, the task ends up with two context entities
in its tags. It's indeterministic which one will be available through
BrooklynTaskTags.getContextEntity.
The context entity should be set by internal code at a single place. Remove
all places where we are setting the context additionally and add a warning at
runtime if detected. To be changed to an exception after a release or two,
currently a warning in the logs.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/neykov/brooklyn-server fix/task-context
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/brooklyn-server/pull/385.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #385
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---