MCPcopy
hub / github.com/grafana/tempo / tenantIndexPollError

Method tenantIndexPollError

tempodb/blocklist/poller.go:520–530  ·  view source on GitHub ↗
(idx *backend.TenantIndex, err error)

Source from the content-addressed store, hash-verified

518}
519
520func (p *Poller) tenantIndexPollError(idx *backend.TenantIndex, err error) error {
521 if err != nil {
522 return err
523 }
524
525 if p.cfg.StaleTenantIndex != 0 && time.Since(idx.CreatedAt) > p.cfg.StaleTenantIndex {
526 return fmt.Errorf("tenant index created at %s is stale", idx.CreatedAt)
527 }
528
529 return nil
530}
531
532// deleteTenant will delete all of a tenant's objects if there is not a tenant index present.
533func (p *Poller) deleteTenant(ctx context.Context, tenantID string) error {

Callers 2

TestTenantIndexPollErrorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestTenantIndexPollErrorFunction · 0.76