-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fix: Fix bloom deleter PR after merge #13167
fix: Fix bloom deleter PR after merge #13167
Conversation
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.
LGTM!
@@ -476,7 +473,7 @@ func (p *Planner) loadTenantWork( | |||
|
|||
// If this is the first this we see this table, initialize the map | |||
if tenantTableWork[table] == nil { | |||
tenantTableWork[table] = make(map[string][]v1.FingerprintBounds, tenants.Len()) | |||
tenantTableWork[table] = make(map[string][]v1.FingerprintBounds, tenants.Remaining()) |
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.
I don't know this code too well, but I assume the behavior of Len
and Remaining
here is the same – i.e. Remaining
doesn't do additional filtering, for example.
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.
Yup :)
Fixes #13153. Reimplemented
outdatedMetas
as it's currently implemented in the bloomcompactor pkg:loki/pkg/bloomcompactor/versioned_range.go
Line 213 in fbe7c55
nit: I'm removing the err returned by
outdatedMetas
since it's always nil.