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

Method compactOneJob

tempodb/compactor.go:232–235  ·  view source on GitHub ↗
(ctx context.Context, blockMetas []*backend.BlockMeta, tenantID string)

Source from the content-addressed store, hash-verified

230}
231
232func (rw *readerWriter) compactOneJob(ctx context.Context, blockMetas []*backend.BlockMeta, tenantID string) error {
233 _, err := rw.CompactWithConfig(ctx, blockMetas, tenantID, rw.compactorCfg, rw.compactorSharder, rw.compactorOverrides)
234 return err
235}
236
237func (rw *readerWriter) CompactWithConfig(ctx context.Context, blockMetas []*backend.BlockMeta, tenantID string, compactorCfg *CompactorConfig, compactorSharder CompactorSharder, compactorOverrides CompactorOverrides) ([]*backend.BlockMeta, error) {
238 level.Debug(rw.logger).Log("msg", "beginning compaction", "num blocks compacting", len(blockMetas))

Callers 8

compactWhileOwnsMethod · 0.95
testCompactionRoundtripFunction · 0.80
testSameIDCompactionFunction · 0.80
TestCompactionMetricsFunction · 0.80
benchmarkCompactionFunction · 0.80

Calls 1

CompactWithConfigMethod · 0.95

Tested by 7

testCompactionRoundtripFunction · 0.64
testSameIDCompactionFunction · 0.64
TestCompactionMetricsFunction · 0.64
benchmarkCompactionFunction · 0.64