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

Add series label for unhealthy index debug log #4727

Merged
merged 9 commits into from
Oct 3, 2021

Conversation

metonymic-smokey
Copy link
Contributor

Signed-off-by: metonymic-smokey [email protected]

Fixes #4470

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

The debug log on compaction when an unhealthy index is found now mentions the series in the out of order index too. Earlier, only the proportion of such series was logged.

Verification

Signed-off-by: metonymic-smokey <[email protected]>
pkg/block/index.go Outdated Show resolved Hide resolved
pkg/compact/compact.go Outdated Show resolved Hide resolved
@metonymic-smokey
Copy link
Contributor Author

metonymic-smokey commented Oct 2, 2021

@yeya24 after these latest reviews, I've retained only the most essential code i.e. printing the labelset when an out of order series occurs.
This is how the result looks currently:
image

pkg/block/index.go Outdated Show resolved Hide resolved
Signed-off-by: metonymic-smokey <[email protected]>
Signed-off-by: metonymic-smokey <[email protected]>
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

LGTM

@yeya24 yeya24 merged commit 48a068c into thanos-io:main Oct 3, 2021
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.

Compactor: Provide more info when unhealthy index found
2 participants