-
Notifications
You must be signed in to change notification settings - Fork 863
[BTS-2217] Attempting to STOP a non-started feature #21940
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
[BTS-2217] Attempting to STOP a non-started feature #21940
Conversation
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Markus Pfeiffer.
|
3bee31c
to
8775f53
Compare
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Markus Pfeiffer.
|
8775f53
to
d7d07b3
Compare
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Markus Pfeiffer.
|
d7d07b3
to
fd48100
Compare
As a point of reference, the feature that caused this kerfuffle is the The bug fixed is a genuine bug in the startup/shutdown code, though, so this fix should go in regardless. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
If an error happens during ApplicationServer::start(), the function attempts to shutdown all previously started features. During startup only the enabled features are started, non-enabled features are skipped. The shutdown loop was missing the code skipping non-enabled features and hence ran into an ADB_PROD_ASSERT.
17e2404
to
7775b20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks still good to me :)
If an error happens during
ApplicationServer::start()
, the function attempts to shutdown all previously started features.During startup only the enabled features are started, non-enabled features are skipped.
The shutdown loop was missing the code skipping non-enabled features and hence ran into an `ADB_PROD_ASSERT.
Testing the above fix I also found that the server is not put into the correct state when stopping and unpreparing features, so that code is added, too.
Scope & Purpose
(Please describe the changes in this PR for reviewers, motivation, rationale - mandatory)
Checklist
Related Information
(Please reference tickets / specification / other PRs etc)