Skip to content

Make destroy on stop configurable for apps#39

Merged
asfgit merged 4 commits intoapache:masterfrom
ahgittin:apps-destroy-on-stop-configurable
Mar 4, 2016
Merged

Make destroy on stop configurable for apps#39
asfgit merged 4 commits intoapache:masterfrom
ahgittin:apps-destroy-on-stop-configurable

Conversation

@ahgittin
Copy link
Contributor

should fix https://issues.apache.org/jira/browse/BROOKLYN-203 and BasicStartableTest.testTransitionsThroughLifecycles (https://builds.apache.org/job/brooklyn-master-build/16/console) failure

@ahgittin
Copy link
Contributor Author

failure unrelated, infra problem https://issues.apache.org/jira/browse/INFRA-11316

.subscribe(startable, Attributes.SERVICE_STATE_ACTUAL, listener);

app.start(ImmutableList.of(loc1));
app.config().set(StartableApplication.DESTROY_ON_STOP, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assertion below this one looks like it would fail non-deterministically.

We have added a listener (with managementContext.getSubscriptionContext(startable).subscribe(...), so that will get notifications asynchronously. Immediately after calling app.stop(), we assert that the listener has the expected events. I'd have though we'd need to use Asserts.succeedsEventually(...) when checking if the listener has received the expected notifications.

@Graeme-Miller
Copy link
Contributor

hi @ahgittin, we had this issue again with this build. Might be worth getting this PR merged in?

@ahgittin
Copy link
Contributor Author

ahgittin commented Mar 4, 2016

good spot @aledsage. fixing that then merging /cc @Graeme-Miller we'll nail these evil nondet fails!

@asfgit asfgit merged commit f665702 into apache:master Mar 4, 2016
asfgit pushed a commit that referenced this pull request Mar 4, 2016
grkvlt pushed a commit to grkvlt/brooklyn-server that referenced this pull request Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants