Repository navigation
Conversation
v2 has no write replication, so compaction has no duplicates to remove. Profiles sent more than once by a client are ingested as many times. Remove the dedupe iterator, the duplicate rows callback and the pyroscope_compaction_worker_duplicate_profile_rows_dropped_total metric, and document the behavior. The v1 compactor is unchanged.
alsoba13
marked this pull request as ready for review
November 13, 2026 09:22
alsoba13
requested review from
a team,
marcsanmi and
simonswine
as code owners
November 13, 2026 09:22
bryanhuhta
approved these changes
Nov 18, 2026
| require.Equal(t, expected, actual) | ||
| } | ||
|
|
||
| func Test_Compact_DuplicateRows(t *testing.T) { |
Contributor
There was a problem hiding this comment.
Maybe we can add a test to show duplicates are preserved?
| }, []string{"status"}), | ||
|
|
||
| duplicateRowsDropped: prometheus.NewCounterVec(prometheus.CounterOpts{ | ||
| Name: "duplicate_profile_rows_dropped_total", |
Contributor
There was a problem hiding this comment.
Let's also remember to update any dashboards that reference this metric!
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.
Summary
DedupeProfileRowIterator, theWithDuplicateRowsCallbackoption, and thepyroscope_compaction_worker_duplicate_profile_rows_dropped_totalmetric.Test plan
go test ./pkg/block/ ./pkg/compactionworker/Test_Compact_DuplicateRowsremoved along with the feature