-
Notifications
You must be signed in to change notification settings - Fork 535
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
Remove unused compactor code #886
Conversation
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
m4.MinTime = 0 | ||
m4.MaxTime = 2 * time.Hour.Milliseconds() | ||
|
||
var m5 metadata.Meta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added extra block, otherwise m4
would have nothing to merge with.
Signed-off-by: Peter Štibraný <[email protected]>
@@ -91,16 +93,29 @@ func TestSyncer_GarbageCollect_e2e(t *testing.T) { | |||
m3.Compaction.Level = 3 | |||
m3.Compaction.Sources = ids[:9] // last source ID is not part of level 3 block. | |||
m3.Thanos.Downsample.Resolution = 0 | |||
m3.MinTime = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we need it for m1 and m2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only need it for blocks that are passed to SplitAndMergeGrouper
, that is metas[9]
, m3
, m4
and m5
. I can set it for all blocks if you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Sorry for sending obsolete answer too. It's deleted now.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code removal is fine. Changes to tests are a bit tricky but from a quick look they make sense to me.
What this PR does: This PR removes unused code left in compactor package, after Mimir switched to using split-and-merge compactor only.
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]