Skip to content

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

Merged
GiedriusS merged 1 commit intothanos-io:masterfrom
mreichardt95:bucket_sort_metas
Mar 23, 2019
Merged

Bucket: verify sort metas by MinTime before overlap check#966
GiedriusS merged 1 commit intothanos-io:masterfrom
mreichardt95:bucket_sort_metas

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