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

Move initialization of multi KV runtime watcher into initRuntimeConfig function #1665

Merged
merged 3 commits into from
Apr 8, 2022

Conversation

pstibrany
Copy link
Member

What this PR does

This PR moves initialization of multi KV runtime watcher into initRuntimeConfig function.

This fixes problem where Mimir-derived subproject overriding "ruler" init method wouldn't wire the runtime config watcher properly. This PR also fixes problem where ruler and querier wouldn't have runtime config watcher for multi KV installed for querier-store-gateway KV.

Checklist

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

…g function.

This fixes problem where Mimir-derived subproject overriding "ruler"
init method wouldn't wire the runtime config watcher properly.

This change also fixes problem where ruler/querier wouldn't have watcher
installed for watching store-gateway ring.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Copy link
Contributor

@aldernero aldernero left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

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

LGTM, nice catch!

pkg/mimir/modules_test.go Show resolved Hide resolved
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
@pstibrany pstibrany merged commit 760e953 into main Apr 8, 2022
@pstibrany pstibrany deleted the fix-multikv-init branch April 8, 2022 15:58
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.

3 participants