File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,6 @@ func (p *Planner) computeTasks(
405
405
// Resolve TSDBs
406
406
tsdbs , err := p .tsdbStore .ResolveTSDBs (ctx , table , tenant )
407
407
if err != nil {
408
- level .Error (logger ).Log ("msg" , "failed to resolve tsdbs" , "err" , err )
409
408
return nil , nil , fmt .Errorf ("failed to resolve tsdbs: %w" , err )
410
409
}
411
410
@@ -664,9 +663,14 @@ func (p *Planner) loadTenantTables(
664
663
}
665
664
666
665
for tenants .Next () && tenants .Err () == nil && ctx .Err () == nil {
667
- p .metrics .tenantsDiscovered .Inc ()
668
666
tenant := tenants .At ()
667
+ if tenant == "" {
668
+ // Tables that have not been fully compacted yet will have multi-tenant TSDBs for which the tenant is ""
669
+ // in this case we just skip the tenant
670
+ continue
671
+ }
669
672
673
+ p .metrics .tenantsDiscovered .Inc ()
670
674
if ! p .limits .BloomCreationEnabled (tenant ) {
671
675
level .Debug (p .logger ).Log ("msg" , "bloom creation disabled for tenant" , "tenant" , tenant )
672
676
continue
You can’t perform that action at this time.
0 commit comments