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

Bucket: verify sort metas by MinTime before overlap check #966

Merged
merged 1 commit into from
Mar 23, 2019

Conversation

mreichardt95
Copy link
Contributor

Fixes #908

Changes

According to https://github.com/prometheus/tsdb/blob/master/db.go#L778 OverlappingBlocks() requires a sorted Slice by MinTime.

Verification

Verify no longer shows overlapping blocks, that overlap by 0s. make test passes

Copy link
Member

@GiedriusS GiedriusS left a comment

Choose a reason for hiding this comment

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

@GiedriusS GiedriusS merged commit cf6a67a into thanos-io:master Mar 23, 2019
@mreichardt95 mreichardt95 deleted the bucket_sort_metas branch March 23, 2019 12:37
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/bucket utility: overlap error on non-overlapping data blocks
2 participants