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

Repair non-empty XOR chunks during 1h downsampling #6137

Merged
merged 2 commits into from
Feb 22, 2023

Conversation

Kartik-Garg
Copy link
Contributor

@Kartik-Garg Kartik-Garg commented Feb 17, 2023

Fixes #5482

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

Changes

Iterated through the non empty XOR chunks, stored the results in a buffer and then downsampled them to 5m aggregated chunks by using DownsampleRaw method and then passed them for 1h downsampling.

Verification

E2E and unit tests are passing.

@Kartik-Garg Kartik-Garg force-pushed the repair-xor-chunks branch 4 times, most recently from 546ffc9 to 9a08e87 Compare February 20, 2023 18:09
@Kartik-Garg Kartik-Garg changed the title WIP: Repair non-empty XOR chunks during 1h downsampling Repair non-empty XOR chunks during 1h downsampling Feb 20, 2023
pkg/compact/downsample/downsample.go Outdated Show resolved Hide resolved
pkg/compact/downsample/downsample_test.go Outdated Show resolved Hide resolved
pkg/compact/downsample/downsample_test.go Outdated Show resolved Hide resolved
@Kartik-Garg Kartik-Garg changed the title Repair non-empty XOR chunks during 1h downsampling WIP : Repair non-empty XOR chunks during 1h downsampling Feb 20, 2023
@Kartik-Garg Kartik-Garg changed the title WIP : Repair non-empty XOR chunks during 1h downsampling Repair non-empty XOR chunks during 1h downsampling Feb 21, 2023
yeya24
yeya24 previously approved these changes Feb 22, 2023
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.

Thanks!

CHANGELOG.md Outdated Show resolved Hide resolved
Iterated through the non empty XOR chunks, stored the results in a buffer and then downsampled them to 5m aggregated chunks by using DownsampleRaw method and then passed them for 1h downsampling.

Signed-off-by: Kartik-Garg <[email protected]>
Added few more test cases to check if the data being downsampled gets converted to aggregated and also a test case to check if non-empty XOR chunks can be iterated through.
Made changes in the test cases.

Signed-off-by: Kartik-Garg <[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.

Will merge on green.

@yeya24 yeya24 merged commit 1967cd0 into thanos-io:main Feb 22, 2023
@Kartik-Garg
Copy link
Contributor Author

Will merge on green.

@yeya24 Thanks a lot!

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.

Repair non-empty XOR chunks during 1h downsampling
2 participants