Repository navigation
Conversation
Upload level 1 blocks to the bucket and check that the compactor merges adjacent blocks into the next range and overlapping blocks vertically, that the cleaner removes the source blocks, and that the compacted block can be queried through the store-gateway. Fixes cortexproject#3096 Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
The compactor drops the ingester ID from the external labels and refuses to upload a block without any, so add the tenant ID like ingesters do. The planner also leaves the most recent block alone, so the adjacent case needs a newer block for the two older ones to be compacted. Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
count_over_time drops the metric name, so give each series its own label to avoid a duplicate labelset. Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does:
Adds
TestCompactorMergesBlocks, so the compactor finally has its own integration test. It uploads level 1 blocks straight to the bucket and runs the compactor, once with two adjacent blocks that should become one block in the next range, and once with two overlapping blocks that should be merged vertically. Then it checks the compacted block's meta, waits for the cleaner to remove the source blocks, and queries the result through the store-gateway.Which issue(s) this PR fixes:
Fixes #3096
I used some help from AI, please don't yell at me. Thx.
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]docs/configuration/v1-guarantees.mdupdated if this PR introduces experimental flags