Skip to content
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

Replace TenantIndex, BlockMeta and CompactedBlockMeta with proto near-equivalents #4072

Merged
merged 71 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
dd35d23
Update proto for v1 backend
zalegrala Sep 9, 2024
cfa1e5d
Functioning blocklist with new package
zalegrala Sep 9, 2024
c427c78
Functioning blocklist with existing package
zalegrala Sep 10, 2024
c9c6c24
Generate proto to existing package
zalegrala Sep 10, 2024
05f159f
Add wrapper around google UUID for proto marshaling
zalegrala Sep 10, 2024
c3b14fb
Update blocklist for wrapper type
zalegrala Sep 10, 2024
c51381a
Test WriteTenantIndex
zalegrala Sep 10, 2024
b2b7ad5
Implement json for uuid
zalegrala Sep 10, 2024
04cb211
Almost functional backend tests
zalegrala Sep 10, 2024
0395a5b
Passing backend tests
zalegrala Sep 10, 2024
e6cde93
Improve UUID coverage and utility
zalegrala Sep 11, 2024
abaaac4
TempoDB updates for UUID and struct type changes
zalegrala Sep 11, 2024
3b175bc
Update method style for uuid.New()
zalegrala Sep 11, 2024
e0f256e
Update method style for uuid.MustParse()
zalegrala Sep 11, 2024
e7a6934
Add uuid.From helper
zalegrala Sep 11, 2024
59ea4e1
Update modules for UUID and proto struct types
zalegrala Sep 11, 2024
7e898df
Update poller integration test for UUID
zalegrala Sep 11, 2024
fc66397
Update tempo-cli for UUID and proto struct type changes
zalegrala Sep 11, 2024
b8ac6e6
Lint and clean up
zalegrala Sep 11, 2024
b780679
Fix serverless
zalegrala Sep 11, 2024
4c7e133
Fix cli
zalegrala Sep 11, 2024
5594fdf
Fix cli
zalegrala Sep 11, 2024
228ac24
Add fixture tests for roundtrip assurance between versions
zalegrala Sep 11, 2024
0c18025
Clean up notes from proto definition
zalegrala Sep 11, 2024
dfaea73
Update backend/test
zalegrala Sep 11, 2024
0b05ece
Be more specific about unmarshal UUID
zalegrala Sep 11, 2024
5232218
Include event for compacted block
zalegrala Sep 11, 2024
5eecd3c
Use better json tag for compacted meta
zalegrala Sep 12, 2024
7316366
Implement UnmarshalJson on CompcatedBlockMeta for embedded struct
zalegrala Sep 12, 2024
151bdcb
Test for CompactedMeta marshal/unmarshal
zalegrala Sep 12, 2024
f8ffe3b
Drop benchmark index
zalegrala Sep 12, 2024
8ef9e16
Clean commented code
zalegrala Sep 13, 2024
8e8c831
Extend mocks to capture multiple writes
zalegrala Sep 13, 2024
2142214
Update backend/test fixtures
zalegrala Sep 13, 2024
7184f8f
Write both proto and json to the backend for all three files in all b…
zalegrala Sep 13, 2024
af4b85d
Fix lint
zalegrala Sep 13, 2024
fe71169
Back UUID with google.UUID to avoid struct
zalegrala Sep 23, 2024
d62a312
Relocate pkg/uuid to tempodb/backend
zalegrala Sep 23, 2024
0593a17
Re-plumb UUID through tempodb
zalegrala Sep 23, 2024
5f36d86
Re-plumb UUID through cmd
zalegrala Sep 23, 2024
eb0f3cc
Re-plumb UUID through modules
zalegrala Sep 23, 2024
7c9f76b
Re-plumb UUID through integration/
zalegrala Sep 23, 2024
06b223c
Drop package spec from tempo.proto
zalegrala Sep 23, 2024
a23e192
Improve encoding marshal performance
zalegrala Sep 23, 2024
fb17a1c
Drop block proto and tenantindex json
zalegrala Sep 24, 2024
759b248
Drop additional proto include
zalegrala Sep 24, 2024
d167ee3
Implement zstd tenant index compression
zalegrala Sep 24, 2024
1509b5b
Add note about use of json in the dedicatedcolumns
zalegrala Sep 24, 2024
b814d82
Fix ingester local block
zalegrala Sep 24, 2024
5921ee9
Spell
zalegrala Sep 25, 2024
b137f14
Revert mock update
zalegrala Sep 25, 2024
705d9bb
Drop json fallback from tenantindex read
zalegrala Sep 25, 2024
823d2b7
Replace single-tenant test fixtures
zalegrala Sep 25, 2024
f725960
Update fixture replacement test
zalegrala Sep 25, 2024
6238b0c
Improve error handling and fix test
zalegrala Sep 25, 2024
8d6f76f
Extend test for tenantindex round-trip
zalegrala Sep 25, 2024
edd1923
Small fixes
zalegrala Sep 25, 2024
9a77da0
Revert "Drop json fallback from tenantindex read"
zalegrala Sep 25, 2024
5670121
Add back mocks to capture multiple backend writes
zalegrala Sep 25, 2024
de52154
Add back proto & json writitng/reading for tenantindex
zalegrala Sep 25, 2024
b6548ac
Change TotalObjects type from int32 -> int64
zalegrala Sep 25, 2024
379e835
Store write buffer at object path in mocks to improve readability in …
zalegrala Sep 30, 2024
838b9a4
Avoid allocation in interface validation
zalegrala Sep 30, 2024
9b0e400
Update note to include intern
zalegrala Sep 30, 2024
a8fdddb
Pluralize metas and compacted_metas fields
zalegrala Sep 30, 2024
8a2dfd9
Fallback to json only on ErrDoesNotExist
zalegrala Sep 30, 2024
8de8a5e
Lint
zalegrala Sep 30, 2024
3ae8611
Drop debug
zalegrala Sep 30, 2024
1216d7d
Revert "Pluralize metas and compacted_metas fields"
zalegrala Oct 1, 2024
cc30cbd
Import original tenantindex and test contents for backwards compatibi…
zalegrala Oct 1, 2024
89c0a71
Update changelog
zalegrala Oct 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* [ENHANCEMENT] Replace Grafana Agent example by Grafana Alloy[#4030](https://github.com/grafana/tempo/pull/4030) (@javiermolinar)
* [ENHANCEMENT] Support exporting internal Tempo traces via OTLP exporter when `use_otel_tracer` is enabled. Use the OpenTelemetry SDK environment variables to configure the span exporter. [#4028](https://github.com/grafana/tempo/pull/4028) (@andreasgerstmayr)
* [ENHANCEMENT] TraceQL metrics queries: add min_over_time [#3975](https://github.com/grafana/tempo/pull/3975) (@javiermolinar)

* [ENHANCEMENT] Write tenantindex as proto and json with a prefernce for proto [#4072](https://github.com/grafana/tempo/pull/4072) (@zalegrala)

# v2.6.0

Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ PROTO_INTERMEDIATE_DIR = pkg/.patched-proto
PROTO_INCLUDES = -I$(PROTO_INTERMEDIATE_DIR)
PROTO_GEN = $(PROTOC) $(PROTO_INCLUDES) --gogofaster_out=plugins=grpc,paths=source_relative:$(2) $(1)
PROTO_GEN_WITH_VENDOR = $(PROTOC) $(PROTO_INCLUDES) -Ivendor -Ivendor/github.com/gogo/protobuf --gogofaster_out=plugins=grpc,paths=source_relative:$(2) $(1)
PROTO_GEN_WITHOUT_RELATIVE = $(PROTOC) $(PROTO_INCLUDES) --gogofaster_out=plugins=grpc:$(2) $(1)

.PHONY: gen-proto
gen-proto: ## Generate proto files
Expand Down Expand Up @@ -264,6 +265,7 @@ gen-proto: ## Generate proto files
$(call PROTO_GEN,$(PROTO_INTERMEDIATE_DIR)/resource/v1/resource.proto,./pkg/tempopb/)
$(call PROTO_GEN,$(PROTO_INTERMEDIATE_DIR)/trace/v1/trace.proto,./pkg/tempopb/)
$(call PROTO_GEN,pkg/tempopb/tempo.proto,./)
$(call PROTO_GEN_WITHOUT_RELATIVE,tempodb/backend/v1/v1.proto,./)
$(call PROTO_GEN_WITH_VENDOR,modules/frontend/v1/frontendv1pb/frontend.proto,./)

rm -rf $(PROTO_INTERMEDIATE_DIR)
Expand Down
6 changes: 3 additions & 3 deletions cmd/tempo-cli/cmd-analyse-block.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (cmd *analyseBlockCmd) Run(ctx *globalOptions) error {
return blockSum.print(cmd.NumAttr, cmd.GenerateJsonnet, cmd.SimpleSummary, cmd.PrintFullSummary)
}

func processBlock(r backend.Reader, tenantID, blockID string, maxStartTime, minStartTime time.Time, minCompactionLvl uint8) (*blockSummary, error) {
func processBlock(r backend.Reader, tenantID, blockID string, maxStartTime, minStartTime time.Time, minCompactionLvl uint32) (*blockSummary, error) {
id := uuid.MustParse(blockID)

meta, err := r.BlockMeta(context.TODO(), id, tenantID)
Expand Down Expand Up @@ -143,9 +143,9 @@ func processBlock(r backend.Reader, tenantID, blockID string, maxStartTime, minS
return nil, nil
}

br := tempo_io.NewBufferedReaderAt(reader, int64(meta.Size), 2*1024*1024, 64) // 128 MB memory buffering
br := tempo_io.NewBufferedReaderAt(reader, int64(meta.Size_), 2*1024*1024, 64) // 128 MB memory buffering

pf, err := parquet.OpenFile(br, int64(meta.Size), parquet.SkipBloomFilters(true), parquet.SkipPageIndex(true))
pf, err := parquet.OpenFile(br, int64(meta.Size_), parquet.SkipBloomFilters(true), parquet.SkipPageIndex(true))
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/tempo-cli/cmd-analyse-blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (cmd *analyseBlocksCmd) Run(ctx *globalOptions) error {
continue
}

blockSum, err := processBlock(r, cmd.TenantID, block.String(), maxStartTime, minStartTime, uint8(cmd.MinCompactionLevel))
blockSum, err := processBlock(r, cmd.TenantID, block.String(), maxStartTime, minStartTime, uint32(cmd.MinCompactionLevel))
if err != nil {
if !errors.Is(err, backend.ErrDoesNotExist) {
return err
Expand Down
2 changes: 1 addition & 1 deletion cmd/tempo-cli/cmd-convert-parquet-3to4.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (cmd *convertParquet3to4) Run() error {
return err
}

fmt.Printf("Successfully created block with size=%d and footerSize=%d\n", outMeta.Size, outMeta.FooterSize)
fmt.Printf("Successfully created block with size=%d and footerSize=%d\n", outMeta.Size_, outMeta.FooterSize)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/tempo-cli/cmd-list-block.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func dumpBlock(r tempodb_backend.Reader, c tempodb_backend.Compactor, tenantID s
fmt.Println("ID : ", unifiedMeta.BlockID)
fmt.Println("Version : ", unifiedMeta.Version)
fmt.Println("Total Objects : ", unifiedMeta.TotalObjects)
fmt.Println("Data Size : ", humanize.Bytes(unifiedMeta.Size))
fmt.Println("Data Size : ", humanize.Bytes(unifiedMeta.Size_))
fmt.Println("Encoding : ", unifiedMeta.Encoding)
fmt.Println("Level : ", unifiedMeta.CompactionLevel)
fmt.Println("Window : ", unifiedMeta.window)
Expand Down
8 changes: 4 additions & 4 deletions cmd/tempo-cli/cmd-list-blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ func displayResults(results []blockStats, windowDuration time.Duration, includeC
case "lvl":
s = strconv.Itoa(int(r.CompactionLevel))
case "objects":
s = strconv.Itoa(r.TotalObjects)
s = strconv.Itoa(int(r.TotalObjects))
case "size":
s = fmt.Sprintf("%v", humanize.Bytes(r.Size))
s = fmt.Sprintf("%v", humanize.Bytes(r.Size_))
case "encoding":
s = r.Encoding.String()
case "vers":
Expand Down Expand Up @@ -89,8 +89,8 @@ func displayResults(results []blockStats, windowDuration time.Duration, includeC
}

out = append(out, line)
totalObjects += r.TotalObjects
totalBytes += r.Size
totalObjects += int(r.TotalObjects)
totalBytes += r.Size_
}

footer := make([]string, 0)
Expand Down
2 changes: 1 addition & 1 deletion cmd/tempo-cli/cmd-list-column.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (cmd *listColumnCmd) Run(ctx *globalOptions) error {
}

rr := vparquet3.NewBackendReaderAt(context.Background(), r, vparquet3.DataFileName, meta)
pf, err := parquet.OpenFile(rr, int64(meta.Size))
pf, err := parquet.OpenFile(rr, int64(meta.Size_))
if err != nil {
return err
}
Expand Down
16 changes: 8 additions & 8 deletions cmd/tempo-cli/cmd-list-compactionsummary.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,24 @@ func displayCompactionSummary(results []blockStats) {
sizeSum := uint64(0)
sizeMin := uint64(0)
sizeMax := uint64(0)
countSum := 0
countMin := 0
countMax := 0
countSum := int64(0)
countMin := int64(0)
countMax := int64(0)
countBloomShards := 0

var newest time.Time
var oldest time.Time

for _, r := range resultsByLevel[l] {
sizeSum += r.Size
sizeSum += r.Size_
countSum += r.TotalObjects
countBloomShards += int(r.BloomShardCount)

if r.Size < sizeMin || sizeMin == 0 {
sizeMin = r.Size
if r.Size_ < sizeMin || sizeMin == 0 {
sizeMin = r.Size_
}
if r.Size > sizeMax {
sizeMax = r.Size
if r.Size_ > sizeMax {
sizeMax = r.Size_
}
if r.TotalObjects < countMin || countMin == 0 {
countMin = r.TotalObjects
Expand Down
5 changes: 3 additions & 2 deletions cmd/tempo-cli/cmd-migrate-tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/dustin/go-humanize"
"github.com/google/uuid"

"github.com/grafana/tempo/tempodb/backend"
"github.com/grafana/tempo/tempodb/encoding"
Expand Down Expand Up @@ -49,7 +50,7 @@ blocks:
for _, sourceBlockMeta := range sourceTenantIndex.Meta {
// check for collisions
for _, uuidDest := range blocksDest {
if sourceBlockMeta.BlockID == uuidDest {
if (uuid.UUID)(sourceBlockMeta.BlockID) == uuidDest {
fmt.Printf("UUID %s exists in source and destination, skipping block\n", sourceBlockMeta.BlockID)
continue blocks
}
Expand All @@ -70,7 +71,7 @@ blocks:
}

copiedBlocks++
copiedSize += sourceBlockMeta.Size
copiedSize += sourceBlockMeta.Size_
}

fmt.Printf("Finished migrating data. Copied %d blocks, %s\n", copiedBlocks, humanize.Bytes(copiedSize))
Expand Down
4 changes: 2 additions & 2 deletions cmd/tempo-cli/cmd-rewrite-blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (cmd *dropTraceCmd) Run(ctx *globalOptions) error {
// print out blocks that have the trace id
fmt.Println("\n\ntrace found in:")
for _, block := range blocks {
fmt.Printf(" %v sz: %d traces: %d\n", block.BlockID, block.Size, block.TotalObjects)
fmt.Printf(" %v sz: %d traces: %d\n", block.BlockID, block.Size_, block.TotalObjects)
}

if !cmd.DropTrace {
Expand All @@ -82,7 +82,7 @@ func (cmd *dropTraceCmd) Run(ctx *globalOptions) error {
fmt.Println("marking old blocks compacted")
for _, block := range blocks {
fmt.Printf(" marking %v\n", block.BlockID)
err = c.MarkBlockCompacted(block.BlockID, block.TenantID)
err = c.MarkBlockCompacted((uuid.UUID)(block.BlockID), block.TenantID)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/tempo-cli/cmd-view-pq-schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (cmd *viewSchemaCmd) Run(ctx *globalOptions) error {
fmt.Printf("%+v\n", meta)

rr := vparquet3.NewBackendReaderAt(context.Background(), r, vparquet3.DataFileName, meta)
pf, err := parquet.OpenFile(rr, int64(meta.Size))
pf, err := parquet.OpenFile(rr, int64(meta.Size_))
if err != nil {
return err
}
Expand Down
13 changes: 6 additions & 7 deletions cmd/tempo-cli/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"time"

"github.com/google/uuid"

"github.com/grafana/tempo/pkg/boundedwaitgroup"
"github.com/grafana/tempo/tempodb/backend"
)
Expand Down Expand Up @@ -42,7 +41,7 @@ func getMeta(meta *backend.BlockMeta, compactedMeta *backend.CompactedBlockMeta,

return unifiedBlockMeta{
BlockMeta: backend.BlockMeta{
BlockID: uuid.UUID{},
BlockID: backend.UUID{},
CompactionLevel: 0,
TotalObjects: -1,
},
Expand Down Expand Up @@ -72,7 +71,7 @@ func loadBucket(r backend.Reader, c backend.Compactor, tenantID string, windowRa
for blockNum, id := range blockIDs {
wg.Add(1)

go func(id2 uuid.UUID, blockNum2 int) {
go func(id2 backend.UUID, blockNum2 int) {
defer wg.Done()

b, err := loadBlock(r, c, tenantID, id2, blockNum2, windowRange, includeCompacted)
Expand All @@ -84,7 +83,7 @@ func loadBucket(r backend.Reader, c backend.Compactor, tenantID string, windowRa
if b != nil {
resultsCh <- *b
}
}(id, blockNum)
}(backend.UUID(id), blockNum)
}

wg.Wait()
Expand All @@ -102,20 +101,20 @@ func loadBucket(r backend.Reader, c backend.Compactor, tenantID string, windowRa
return results, nil
}

func loadBlock(r backend.Reader, c backend.Compactor, tenantID string, id uuid.UUID, blockNum int, windowRange time.Duration, includeCompacted bool) (*blockStats, error) {
func loadBlock(r backend.Reader, c backend.Compactor, tenantID string, id backend.UUID, blockNum int, windowRange time.Duration, includeCompacted bool) (*blockStats, error) {
fmt.Print(".")
if blockNum%100 == 0 {
fmt.Print(strconv.Itoa(blockNum))
}

meta, err := r.BlockMeta(context.Background(), id, tenantID)
meta, err := r.BlockMeta(context.Background(), (uuid.UUID)(id), tenantID)
if errors.Is(err, backend.ErrDoesNotExist) && !includeCompacted {
return nil, nil
} else if err != nil && !errors.Is(err, backend.ErrDoesNotExist) {
return nil, err
}

compactedMeta, err := c.CompactedBlockMeta(id, tenantID)
compactedMeta, err := c.CompactedBlockMeta((uuid.UUID)(id), tenantID)
if err != nil && !errors.Is(err, backend.ErrDoesNotExist) {
return nil, err
}
Expand Down
5 changes: 2 additions & 3 deletions cmd/tempo-serverless/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"strings"
"sync"

"github.com/google/uuid"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/user"
"github.com/mitchellh/mapstructure"
Expand Down Expand Up @@ -71,7 +70,7 @@ func Handler(r *http.Request) (*tempopb.SearchResponse, *HTTPError) {
return nil, httpError("extracting org id", err, http.StatusBadRequest)
}

blockID, err := uuid.Parse(searchReq.BlockID)
blockID, err := backend.ParseUUID(searchReq.BlockID)
if err != nil {
return nil, httpError("parsing uuid", err, http.StatusBadRequest)
}
Expand All @@ -95,7 +94,7 @@ func Handler(r *http.Request) (*tempopb.SearchResponse, *HTTPError) {
TotalRecords: searchReq.TotalRecords,
BlockID: blockID,
DataEncoding: searchReq.DataEncoding,
Size: searchReq.Size_,
Size_: searchReq.Size_,
FooterSize: searchReq.FooterSize,
DedicatedColumns: dc,
}
Expand Down
6 changes: 3 additions & 3 deletions integration/poller/poller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func TestPollerOwnership(t *testing.T) {

actual := []uuid.UUID{}
for _, m := range metas {
actual = append(actual, m.BlockID)
actual = append(actual, (uuid.UUID)(m.BlockID))
}

sort.Slice(actual, func(i, j int) bool { return actual[i].String() < actual[j].String() })
Expand Down Expand Up @@ -371,7 +371,7 @@ func TestTenantDeletion(t *testing.T) {

func found(id uuid.UUID, blockMetas []*backend.BlockMeta) bool {
for _, b := range blockMetas {
if b.BlockID == id {
if (uuid.UUID)(b.BlockID) == id {
return true
}
}
Expand All @@ -383,7 +383,7 @@ func writeTenantBlocks(t *testing.T, w backend.Writer, tenant string, blockIDs [
var err error
for _, b := range blockIDs {
meta := &backend.BlockMeta{
BlockID: b,
BlockID: backend.UUID(b),
TenantID: tenant,
}

Expand Down
17 changes: 8 additions & 9 deletions modules/frontend/cache_keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"testing"
"time"

"github.com/google/uuid"
"github.com/grafana/tempo/pkg/tempopb"
"github.com/grafana/tempo/tempodb/backend"
"github.com/stretchr/testify/require"
Expand All @@ -31,7 +30,7 @@ func TestCacheKeyForJob(t *testing.T) {
End: 20,
},
meta: &backend.BlockMeta{
BlockID: uuid.MustParse("00000000-0000-0000-0000-000000000123"),
BlockID: backend.MustParse("00000000-0000-0000-0000-000000000123"),
StartTime: time.Unix(15, 0),
EndTime: time.Unix(16, 0),
},
Expand All @@ -47,7 +46,7 @@ func TestCacheKeyForJob(t *testing.T) {
End: 20,
},
meta: &backend.BlockMeta{
BlockID: uuid.MustParse("00000000-0000-0000-0000-000000000123"),
BlockID: backend.MustParse("00000000-0000-0000-0000-000000000123"),
StartTime: time.Unix(15, 0),
EndTime: time.Unix(16, 0),
},
Expand All @@ -63,7 +62,7 @@ func TestCacheKeyForJob(t *testing.T) {
End: 20,
},
meta: &backend.BlockMeta{
BlockID: uuid.MustParse("00000000-0000-0000-0000-000000000123"),
BlockID: backend.MustParse("00000000-0000-0000-0000-000000000123"),
StartTime: time.Unix(5, 0),
EndTime: time.Unix(6, 0),
},
Expand All @@ -79,7 +78,7 @@ func TestCacheKeyForJob(t *testing.T) {
End: 20,
},
meta: &backend.BlockMeta{
BlockID: uuid.MustParse("00000000-0000-0000-0000-000000000123"),
BlockID: backend.MustParse("00000000-0000-0000-0000-000000000123"),
StartTime: time.Unix(5, 0),
EndTime: time.Unix(15, 0),
},
Expand All @@ -95,7 +94,7 @@ func TestCacheKeyForJob(t *testing.T) {
End: 20,
},
meta: &backend.BlockMeta{
BlockID: uuid.MustParse("00000000-0000-0000-0000-000000000123"),
BlockID: backend.MustParse("00000000-0000-0000-0000-000000000123"),
StartTime: time.Unix(15, 0),
EndTime: time.Unix(25, 0),
},
Expand All @@ -111,7 +110,7 @@ func TestCacheKeyForJob(t *testing.T) {
End: 20,
},
meta: &backend.BlockMeta{
BlockID: uuid.MustParse("00000000-0000-0000-0000-000000000123"),
BlockID: backend.MustParse("00000000-0000-0000-0000-000000000123"),
StartTime: time.Unix(25, 0),
EndTime: time.Unix(30, 0),
},
Expand All @@ -127,7 +126,7 @@ func TestCacheKeyForJob(t *testing.T) {
End: 20,
},
meta: &backend.BlockMeta{
BlockID: uuid.MustParse("00000000-0000-0000-0000-000000000123"),
BlockID: backend.MustParse("00000000-0000-0000-0000-000000000123"),
StartTime: time.Unix(5, 0),
EndTime: time.Unix(30, 0),
},
Expand All @@ -151,7 +150,7 @@ func BenchmarkCacheKeyForJob(b *testing.B) {
End: 20,
}
meta := &backend.BlockMeta{
BlockID: uuid.MustParse("00000000-0000-0000-0000-000000000123"),
BlockID: backend.MustParse("00000000-0000-0000-0000-000000000123"),
StartTime: time.Unix(15, 0),
EndTime: time.Unix(16, 0),
}
Expand Down
Loading