Skip to content

Commit

Permalink
Only disable deduplication when all blocks levels are 2 and over
Browse files Browse the repository at this point in the history
This is a bit more failsafe than the other approach.
  • Loading branch information
simonswine committed Nov 9, 2023
1 parent 4698910 commit 6f53a1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/querier/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ func (r *replicasPerBlockID) blockPlan(ctx context.Context) map[string]*ingestv1
if !ok {
continue
}
// when we see a single ingester block, we want to deduplicate
if meta.Compaction != nil && meta.Compaction.Level == 1 {
// when we see a block with CompactionLevel <=1 or a block without compaction section, we want the queriers to deduplicate
if meta.Compaction == nil || meta.Compaction.Level <= 1 {
deduplicate = true
}

Expand Down

0 comments on commit 6f53a1a

Please sign in to comment.