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

Fix modules stop dependencies #1472

Merged
merged 2 commits into from
Mar 14, 2022
Merged

Fix modules stop dependencies #1472

merged 2 commits into from
Mar 14, 2022

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Mar 14, 2022

What this PR does

Upgrade dskit to get PR 141.

A practical example:

  • Querier only depends on TenantFederation. Then TenantFederation on other modules.
  • In initTenantFederation(), we return no service if federation is disabled, but its dependencies are still required by the querier.
  • When stopping the querier, we want all dependencies of querier (recursively) to hold stopping until querier has stopped. With the current dskit implementation, querier's dependencies are stopped immediately even if querier hasn't stopped yet.

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@pracucci pracucci requested a review from pstibrany March 14, 2022 12:03
@pracucci pracucci force-pushed the fix-modules-stop-dependencies branch from 85dd56b to f44f5a9 Compare March 14, 2022 14:37
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci force-pushed the fix-modules-stop-dependencies branch from f44f5a9 to 5d85a05 Compare March 14, 2022 14:39
@pracucci pracucci marked this pull request as ready for review March 14, 2022 14:41
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

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

Thank you

@pracucci pracucci enabled auto-merge (squash) March 14, 2022 14:55
@pracucci pracucci merged commit 3688d29 into main Mar 14, 2022
@pracucci pracucci deleted the fix-modules-stop-dependencies branch March 14, 2022 15:02
pracucci added a commit that referenced this pull request Mar 21, 2022
* Upgrade dskit

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Added CHANGELOG entry

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci mentioned this pull request Mar 21, 2022
3 tasks
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.

2 participants