Skip to content

Commit b34aef1

Browse files
committed
sql/rowexec: run BenchmarkIndexBackfill on-disk
Epic: none Release note: None
1 parent 896340b commit b34aef1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/sql/rowexec/indexbackfiller_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package rowexec
77

88
import (
99
"context"
10+
"path/filepath"
1011
"testing"
1112
"time"
1213

@@ -18,6 +19,7 @@ import (
1819
"github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scplan"
1920
"github.com/cockroachdb/cockroach/pkg/sql/sem/eval"
2021
"github.com/cockroachdb/cockroach/pkg/sql/sqlerrors"
22+
"github.com/cockroachdb/cockroach/pkg/testutils"
2123
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
2224
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
2325
"github.com/cockroachdb/cockroach/pkg/util/log"
@@ -92,6 +94,9 @@ func BenchmarkIndexBackfill(b *testing.B) {
9294
stopTimer := func() {}
9395
startTimer := func() {}
9496

97+
dir, dirCleanupFn := testutils.TempDir(b)
98+
defer dirCleanupFn()
99+
95100
srv, sqlDB, _ := serverutils.StartServer(b, base.TestServerArgs{
96101
Knobs: base.TestingKnobs{
97102
SQLEvalContext: &eval.TestingKnobs{
@@ -120,6 +125,7 @@ func BenchmarkIndexBackfill(b *testing.B) {
120125
},
121126
},
122127
},
128+
StoreSpecs: []base.StoreSpec{{InMemory: false, Path: filepath.Join(dir, "testserver")}},
123129
})
124130
defer srv.Stopper().Stop(ctx)
125131

0 commit comments

Comments
 (0)