Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop starting applications when terminating node #9494

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

michalmuskala
Copy link
Contributor

@michalmuskala michalmuskala commented Feb 25, 2025

Applications that didn't finish starting could be left in a half-broken state during node shutdown. In particular, their dependencies would be already shut down, while the application itself was running, likely with many errors. The behaviour is to replicate what happens if the application finished starting - with timeout set, we'll respect this timeout; otherwise we'll wait forever.

This has some setup work in earlier commits, trying to make the change gradual. I recommend reviewing the commits separately. In particular, we first remove the From field from the starting queue - it seems completely unused. This is later replaced with a Starter - tracking the process responsible for starting the application, so we can properly interact with it.

Fixes #8485

This seems to be never actually used - the From in the start_req
is used for replying to waiting processes.
This is necessary to be able to later interact with this process
…node

Applications that didn't finish starting could be left in a half-broken
state during node shutdown. In particular, their dependencies would be
already shut down, while the application itself was running, likely
with many errors.
The behaviour is to replicate what happens if the application finished
starting - with timeout set, we'll respect this timeout; otherwise
we'll wait forever.
Copy link
Contributor

github-actions bot commented Feb 25, 2025

CT Test Results

    2 files     70 suites   1h 7m 11s ⏱️
1 570 tests 1 325 ✅ 242 💤 3 ❌
1 820 runs  1 525 ✅ 292 💤 3 ❌

For more details on these failures, see this check.

Results for commit 7f0ee75.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

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.

application_controller don't stop starting application correctly in terminate
1 participant