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 "unsupported value type" logged when calling /ready and some services are not yet running. #3625

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Dec 2, 2022

What this PR does

If /ready is called and some services are not yet running, we currently log a message like the following:

level=debug ts=2022-12-02T01:52:02.411627554Z caller=mimir.go:859 msg="some services are not Running" services="unsupported value type"

(note the unsupported value type for services)

This PR fixes this so that we instead log the names and states of the services that are not running, for example:

level=debug ts=2022-12-02T02:28:15.070733296Z caller=mimir.go:862 msg="some services are not Running" services="store-gateway: Starting, compactor: Starting"

It would also be great to have a linter that catches issues like these, but that seems out of scope for this PR.

Which issue(s) this PR fixes or relates to

n/a

Checklist

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

…ices are not yet running.

Without this, we get log messages like:
level=debug ts=2022-12-02T01:52:02.411627554Z caller=mimir.go:859 msg="some services are not Running" services="unsupported value type"
@charleskorn charleskorn requested a review from a team as a code owner December 2, 2022 02:35
Copy link
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

Nice catch!

@aknuds1 aknuds1 added the bug Something isn't working label Dec 2, 2022
Copy link
Member

@pstibrany pstibrany 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!

@pstibrany pstibrany merged commit 6fd7ca6 into main Dec 2, 2022
@pstibrany pstibrany deleted the unsupported-log-value branch December 2, 2022 08:56
masonmei pushed a commit to udmire/mimir that referenced this pull request Dec 16, 2022
…ices are not yet running. (grafana#3625)

* Fix "unsupported value type" logged when calling /ready and some services are not yet running.

Without this, we get log messages like:
level=debug ts=2022-12-02T01:52:02.411627554Z caller=mimir.go:859 msg="some services are not Running" services="unsupported value type"

* Add changelog entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants