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

compact: properly treat native histogram deduplication in chunk series merger #7164

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

pedro-stanaka
Copy link
Contributor

Summary

We have detected a problem in the chunk seriers merger where it will
panic in case it encounters native histogram chunks.
I am using thanos as a library for a project and wanted to use the
penalty function to dedup blocks from Prometheus instances.

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

Changes

  • Changed the overlapMerger which takes care of checking overlapping chunks to handle histogram and float histogram chunks.
  • Added new tests covering the case where the panic happened.

Verification

  • Apart from tests, I now can deduplicate data using the merger from my code when using this version of the fork.

We have detected a problem in the chunk seriers merger where it will
panic in case it encounters native histogram chunks.
I am using thanos as a library for a project and wanted to use the
penalty function to dedup blocks from Prometheus instances.

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
@pedro-stanaka pedro-stanaka changed the title *: properly treat native histogram deduplication in chunk series merger compact: properly treat native histogram deduplication in chunk series merger Feb 27, 2024
@fpetkovski fpetkovski merged commit 7acce0c into thanos-io:main Mar 11, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants